문제

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 ?

DEMO

도움이 되었습니까?

해결책

Change chnage to change and it should be fine:

$(document).ready(function(){   
    $('#qualification').change(function(){
        alert('sd');
    });
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top