AW: [Javascript] checkboxes in array

Michael Borchers borchers at tridem.de
Tue Mar 15 08:24:34 CST 2005


>   To Access the corresponding checkbox try using 
> "document.getElementsByName
> ('typ[]');" it'll return an array of the objects (the three 
> checkboxes) that 
> match to that name.
... 

thx!
and how it should look exactly?!
typ 1:<input type="checkbox" name="typ[]" value="1"> stck 1:<input type="text" name="stck[]" value="4" onFocus="document.getElementsByName('typ[]').checked=true">



More information about the Javascript mailing list