[thelist] html validation problem with js

Nick Wilson nick at explodingnet.com
Sat Apr 20 06:14:01 CDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


* and then Andrew Maynes declared....

> I have a js running that uses <DIV ID="Summary"> because this is
> called more than once html validation says it is a problem, if I
> change the ID to CLASS there are no errors found. Any ideas why this
> is happening? Also the change from ID to CLASS will not let the js
> work!

Well, the id attribute can only be used once, it is a 'unique
identifier'. I'm no JS expert but I'm pretty certain that you should use
'name' to select those elements.
- --
Nick Wilson     //  www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8wU48HpvrrTa6L5oRAlnTAJ0Uxbn3Wys0aAlz4O9S9DIpiYzOqgCfTHqI
/6kYkoYxjEEsBM6/7Fk5H50=
=Q+A3
-----END PGP SIGNATURE-----



More information about the thelist mailing list