[UPHPU] Javascript and Square braces

Walt Haas haas at xmission.com
Fri Feb 3 18:02:42 MST 2006


TJ Hunter <tjhunter at gmail.com> wrote:

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

Actually it's not. if you are trying to be compatible with IE 4,
according to "JavaScript: The Definitive Guide" by David Flanagan.

-- Walt
-------
Walt Haas          The Web Site Doctor - Cures Sick Web Sites
(801) 534-1262     http://thewebsitedoctor.net


More information about the UPHPU mailing list