This code works in Firefox but not in Chrome. Alert is executed only in Firefox. Why? What am I doing wrong?
jQuery(document).ready(function($){
$('#myselect option').on('click', function() {
var selectvalue= $(this).attr('value');
alert(selectvalue);
return false;
});
});