[jQuery] Firefox select change callback is not working
Hi to all,
i have a problem dealing with the change event on a select form item.
<form>
<select id="yes" name="yes">
<option value="1">My number 1</option>
<option value="2">My number 2</option>
<option value="3">My number 3</option>
</select>
</form>
<script type="text/javascript">
$("#yes").bind("change",yes);
function yes(){
value=$("#yes").val();
alert('Yes val = ' + value);
}
</script>
On Internet Explorer, it works... but not on Firefox.
I have tested lots of things to make it work, but can't a solution.
Tested :
$("#yes").change(function(){
// My callback
});
Tested :
$("form:input[name='yes']").change(function(){
// My callback
});
Is there a way to make it work on Firefox ?
Please..... help ?