how to acess php array var in Js?

From: Date: Wed, 28 Nov 2001 00:52:40 +0000
Subject: how to acess php array var in Js?
Groups: php.general 
Request: Send a blank email to php-general+get-75825@lists.php.net to get a copy of this message
If I have a series of checkboxes like this: <input type=checkbox name="cb[]" value="1"> This is 1 <input type=checkbox name="cb[]" value="2"> This is 2 <input type=checkbox name="cb[]" value="3"> This is 3 <input type=checkbox name="cb[]" value="4"> This is 4 how can I acess "cb[]" in Javascript other than using the "elements" array?? I can't do cb[][0].checked for example... it gives me parse error... using the elements array is not that nice codewise... any hints? _____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br

« previous php.general (#75825) next »