Created
April 20, 2010 14:48
-
-
Save cmcculloh/372561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Conforming XHTML 1.0 Strict Template</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$("#selectBoxId").change(function(){ | |
var selectedValue = $(this).find(":selected").val(); | |
console.log("the value you selected: " + selectedValue); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<select id="selectBoxId"> | |
<option>Foo</option> | |
<option>Bar</option> | |
<option selected="selected">Beh</option> | |
</select> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment