[thelist] html validation problem with js

Martin Tsachev shaggy at members.evolt.org
Sun Apr 21 03:04:01 CDT 2002


On Sat, 20 Apr 2002 10:36:18 +0100, Andrew Maynes wrote:
>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!

Hi Andrew,

The ID has to be *unique*. The js should work if it is changed from id to
class, if you mean you want to reference an element through the js object model
you can call them Summary1, Summary2 and so on.

--------------------------------------------

Martin Tsachev
http://members.evolt.org/shaggy/





More information about the thelist mailing list