I have a form that has many input tags. Rather than apply onchange to each and every input tag I'd like to have it applied to the whole form once.
The following does not work, but can it be made to work?
<html><head><title></title></head>
<body>
<form onchange="alert('I have been changed')">
<input type="Text"><input type="Checkbox">
</form>
</body></html>
dcrombie
10:23 am on Aug 14, 2004 (gmt 0)
No, because the form itself hasn't changed. Perhaps you can loop through the form elements with JavaScript and assign an onchange event handler to all of them as the page loads?
Noisehag
7:31 pm on Aug 14, 2004 (gmt 0)
Darn, that's what I figured. I was trying to avoid that. Thanks.