Jquery On('change'... Not Working In Multiple Tags
I can't get the .val() of my second input select when I use jquery .on('change' function() I have 2 select elements:
Solution 1:
$(document).ready(function(){
$("select").on('change', function(){
var mySel = $(this).val();
console.log(mySel);
});
});
You need to use this
!
** When you were using $('select') the val function can return a string only so it returns the first available value out of the selection made of 2 in your case
Post a Comment for "Jquery On('change'... Not Working In Multiple Tags"