You are here: irt.org | FAQ | JavaScript | Form | Q1366 [ previous next ]
Try:
<script language="JavaScript"><!-- function computeRow(what) { for (var i=0;i<document.forms.length;i++) if (document.forms[i] == what) alert('We have a match : ' +i); } //--></script> <form> <input type="text" onChange="computeRow(this.form)"> </form> <form> <input type="text" onChange="computeRow(this.form)"> </form>