...

View Full Version : JavaScript Tabs failing to hide divs



d_elilan
07-16-2011, 06:30 PM
I have an javascript coding issue with regards to a tabbed menu.

The code is supposed to hide the unselected divs and show the selected div, but all divs are showing and no tab is selected when the page initialises.

The source code is viewable here: http://www.kenaani.co.uk

I was following this tutorial: http://www.elated.com/articles/javascript-tabs/

Which works fine in this example: http://www.elated.com/res/File/articles/development/javascript/document-object-model/javascript-tabs/javascript-tabs.html

I have tried commenting out the other scripts, and the divs still show on the page, so I don't think its a conflicting issue.

Am hoping that someone can spot whatever is going wrong. :o

DanInMa
07-16-2011, 06:59 PM
i suspect it has something to do with your validation errors. check this out


http://validator.w3.org/check?uri=http%3A%2F%2Fwww.kenaani.co.uk&charset=%28detect+automatically%29&doctype=Inline&group=0



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum