Forums

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

Home Forums JavaScript Hiding link once content is opened

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35711
    Maikel
    Member

    Hey,

    I have a comment area which is opened when a link is clicked on, I added a button so you can close the content. But I want to know how can I hide the link when the comment form is opened, and when you click the close button the content his hidden but the link is returned.

    Here’s a link to the form:

    http://jsfiddle.net/Maikel1234/eusbJ/

    #92978
    noahgelman
    Participant

    Super easy, you just give the link an id or class, and add it to the slide toggle call. Like so:

    http://jsfiddle.net/eusbJ/1/

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