...

View Full Version : Check for any value changed in Form



naveen_namburi
10-07-2008, 02:21 PM
HI Folks,

Does anyone know what is the easiest way is to check if the user has changed any of the values in a form.

This should be applied if any value existing in the form has changed and it shluld work in both IE and fire fox

Thanks in Advance

N.Naveen.

marryat
10-07-2008, 03:03 PM
you could just include an onchange event on each element on the form to either run the code you want to run if anything on the form changes.

i.e.



onchange="formChanged()"


this function can include a flag which you will change the first time a form is changed so that it won't continue to run the code.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum