Forums

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

Home Forums JavaScript hide show working half way need help

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

    i use this script to Expand Collapse but it collapse everything on the page how can i make it Collapse one thing and when i click another to close the previous and collapse the next.

    $(document).ready(function() {
    $(‘div.view’).hide();
    $(‘div.slide’).toggle(function() {
    $(this).siblings(‘div.view’).fadeIn(‘slow’);
    }, function() {
    $(this).siblings(‘div.view’).fadeOut(‘fast’);
    return false;
    });
    });

    thank you.

    #93813
    rxzlion
    Member

    help

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