[Javascript] checkboxes in array

flavio flavio at economisa.com.br
Tue Mar 15 08:12:52 CST 2005


 Yeah.



There's your answear.. lol.. =]


  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.


--
Flavio Gomes
flavio at economisa.com.br


Citando Michael Borchers <borchers at tridem.de>:

> typ 1:<input type="checkbox" name="typ[]" value="1"> stck 1:<input
> type="text" name="stck[]" value="4"><br>
> typ 2:<input type="checkbox" name="typ[]" value="2"> stck 2:<input
> type="text" name="stck[]" value="0"><br>
> typ 3:<input type="checkbox" name="typ[]" value="3"> stck 3:<input
> type="text" name="stck[]" value="5"><br>
> 
> when someone focusses on a text input (stck) i would like the responding
> checkbox to be checked.
> possible?!
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 




------------------------------------
Mensagem enviada pelo WebMail Netsol



More information about the Javascript mailing list