S
stewartfip
How do I get the ordinal of a form element from a reference to the
object itself.
For example:
<html>
<script language="javascript">
function disp_val(objField){
alert(---the ordinal of objField in form---)
}
</script>
<body>
<form>
<input type="text" onblur="disp_val(this)"><br>
<input type="text" onblur="disp_val(this)">
</form>
</body>
</html>
I need to pass the ordinal to another function which I have no control
over. Not having any luck figuring this out. I'm sure it's simple and
I'm missing the obvious solution. I'm workign strictly with IE 5.5+.
object itself.
For example:
<html>
<script language="javascript">
function disp_val(objField){
alert(---the ordinal of objField in form---)
}
</script>
<body>
<form>
<input type="text" onblur="disp_val(this)"><br>
<input type="text" onblur="disp_val(this)">
</form>
</body>
</html>
I need to pass the ordinal to another function which I have no control
over. Not having any luck figuring this out. I'm sure it's simple and
I'm missing the obvious solution. I'm workign strictly with IE 5.5+.