J
Jon W
I have a db table like list in a form. All the buttons have the same
name. How do I know what index the button has in the button array
onclick.
<button name="shed" value="Edit2" onclick="Ed_SQL(this.x=1)">Edit
</button>
<input name="shist" type="text" onclick="GO_SQL(this.value)"
value="select * from table2" size="50">
<button name="shed" value="Edit3" onclick="Ed_SQL(this)">Edit
</button>
<input name="shist" type="text" onclick="GO_SQL(this.value)"
value="select * from table3" size="50">
name. How do I know what index the button has in the button array
onclick.
<button name="shed" value="Edit2" onclick="Ed_SQL(this.x=1)">Edit
</button>
<input name="shist" type="text" onclick="GO_SQL(this.value)"
value="select * from table2" size="50">
<button name="shed" value="Edit3" onclick="Ed_SQL(this)">Edit
</button>
<input name="shist" type="text" onclick="GO_SQL(this.value)"
value="select * from table3" size="50">