The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript organic tabs – current tab fails if element order changes

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #31530


    The JS used in the organic tabs causes strange display behaviour if the order of the href and class are changed which a lot of built in editors force.

    If I use:

    href=”#one” class=”current”

    I get a blank tab until I select another and then go back to the current tab, then the text shows.

    If however I use the order shown below (as used in your example) it works but some CMS editors force the element order to that shown in my first example

    class=”current” href=”#one”

    You can see the annoying behaviour here

    Is there a work around for this ?



    sorry, i realised that it was the order of the JS and HTML on the page
    i swapped them around and all works correctly now

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.