[UPHPU] Javascript and Square braces

Fred Larsen fred at bitwyze.com
Fri Feb 3 16:24:31 MST 2006


On Feb 3, 2006, at 4:16 PM, TJ Hunter wrote:

>> I  use  document.forms[0].elements['quantity[]'].value;
>> Solves the problem and is cross browser.
>
> Is getElementById() not cross browser compatible?

Sorry, I did not mean to imply that it was not cross browser  
compatible, which it is.

You can in IE do getElementById() for a form element that does not  
have an id
and it works, but only in IE.

Fred


More information about the UPHPU mailing list