Вопрос

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