mardi 12 juillet 2016

jquery form change


In jQuery, is there a simple way to test if ANY of a forms elements have changed?

EDIT: I should have added that I only need to check on a click() event.

EDIT: Sorry I really should have been more specific! Say I have a form. And I have a button with the following:

$('#mybutton').click(function() {
  //here is where is need to test.
  if( FORM has changed ) {
     do something
  }
});

how would I test if the form has changed since it was loaded?


Aucun commentaire:

Enregistrer un commentaire