Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting form field changes

Status
Not open for further replies.

ancatdubher

Programmer
Apr 10, 2008
1
Hi,

I need to perform an action when any field in the form is changed.
The form has about 40 fields.
Currently, I have a onchange function on every field that set a global variable to true:

function onFieldChange() {
window.fieldWasChanged = true;
}

Is there a better way to do this? Is there a onchange action for the entire form?

Thanks,
Ancat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top