Forums

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

Home Forums JavaScript Remove class for the link, when the div is closed

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43355
    psuma
    Participant

    Hi, I was integrating a jquery content box which toggles on click of the navigations. I am adding a class=’select’ to the respecting navigation,which is clicked and the div is open, but i am not able to remove the class when I click again on it and the div is closed.

    here is the code,

    http://jsfiddle.net/CF6rf/

    Can anybody help me out ? Thanks in Advance

    #128354
    elneco
    Participant

    no need for timeouts or delays,

    all i did here was reorder your jQuery a little bit. works fine now.

    http://jsfiddle.net/CF6rf/3/

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