jquery select option click handler

You want the ‘change’ event handler, instead of ‘click’.

$('#mySelect').change(function(){ 
    var value = $(this).val();
});

Leave a Comment