Change chnage
to change
and it should be fine:
$(document).ready(function(){
$('#qualification').change(function(){
alert('sd');
});
});
题
I have a html
option list similar to below:
<select id="qualification">
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
</select>
And the jquery:
$(document).ready(function(){
$('#qualification').chnage(function(){
alert('sd');
});
});
But when I change the select
options, its not alerting anything ! What is the reason ?
解决方案
Change chnage
to change
and it should be fine:
$(document).ready(function(){
$('#qualification').change(function(){
alert('sd');
});
});