I use document.getElementById().value.
The only change that would need to be made with the input example is add
an id="list['.$x.']"



Jef

-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 8:47 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP & JavaScript

Jay Blanchard wrote:
> Can they play nicely together?
> 
> For instance I have a small JavaScript sniplet that will check certain
> checkboxes if a radio button is selected. Since I have a fair amount of
> checkboxes I want to put them in an array all their own so I use the
> XHTML syntax w/brackets;
> 
> <input type="checkbox" name="list37[]" value="7" />
> 
> Suddenly JavaScript doesn't care for the object and throws an error
> (take the brackets out and it works fine for JS, but PHP cannot see all
> of the values). I have Googled for this but think that my search term(s)
> are failing me because the condition is hard to describe.  Would someone
> please point me in the right direction?
> 
> Thanks!
> 

I don't remember exactaly what I had to do, but I remember quoting it 
somehow made it work with JS.  Something like...

document.formname.elements['list37[]']

I *think*.

-- 
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to