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

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -