BWSnippet

jQuery input select change

jQuery input select change

catch a form input change with jQuery


So we have a select of select id="testSel"

so in jquery


$(function(){    
  $('#testSel').change(function(){
      var x = $(this).val();
  });
}); 

Tags

jQuery input select change