Trigger <option> binded function by js
Hi. It's my first post in this forum, please be patient
In short i have:
-
$(document).ready(function(){
$('select').change(function(){
alert($(this).val());
});
$('select').attr('value', 3 );
});
When JS change the select's option function alert() don't trigger.. Why ?
By what way I can change select to trigger binded function ?