I would like to be able to launch an alert message everytime the value of the dropdown is changed. I thought the code below should have worked but it is not for some unknow reason. Any ideas why?
Thanks.
<html>
<head>
<script type="text/javascript" src="lib/jquery.js"></script>
</head>
<body>
<script type="text/javascript">
$("select").change(function(){
alert(this.id);
});
</script>
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</body>
</html>