Say I have something like this:
Code:
<form name="form1" method="POST" action="action.php">
<input type="text" name="golf_tees[]" id="golf_tees[]">
<input type="text" name="golf_tees[]" id="golf_tees[]">
<input type="text" name="golf_tees[]" id="golf_tees[]">
<input type="text" name="golf_tees[]" id="golf_tees[]">
</form>
If I want to disable the first 2 golf_tees text inputs, how do I go about that? document.getElementById only alters the first input.
Last edited by kbfirebreather; 03-15-2011 at 12:32 PM..
|