Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question JavaScript Tabs failing to hide divs

    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/artic...ript-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.

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    i suspect it has something to do with your validation errors. check this out


    http://validator.w3.org/check?uri=ht...Inline&group=0


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •