-
Okay, if I'm not mistaken, all input elements with the same name, will become an array in the DOM.
In other words...
Code:
<html>
<body>
<form name='myForm'>
<input name='myInput'>
<input name='myInput'>
</form>
<script language='JavaScript'>
function myFunc() {
alert document.myForm.myInput[0].value;
alert document.myForm.myInput[1].value;
}
</script>
</body>
</html>
I could be wrong.
-
You're probably not, since I have successfully used this tactic with radio buttons.
So i guessed i'll try again with this method. I thought I was wrong coz I was gettin' an error as chkNotifier didn't exist... If you see any mistake in my code, don't hesitate to tell me !
Thanks for the input !
-
Lose the parenthesis next to the name. The DOM enumerates them not you.