Using jquery to detect change in a form -
i have following:
loading latest jquery:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> script detect change in form:
<script> $('#myform').on('keyup change', 'input, select, textarea', function(){ console.log('form changed'); }); </script> html
<form id="myform" action="..." method="post"> <input ....................> <input ....................> </form> nothing appears in console , not picking change in form. can tell me have got wrong here?
Comments
Post a Comment