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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    slideToggle query

    Hi All,

    Which is the correct code for the jquery slideToggle effect, I have looked on youtube as well as the jquery website and there seems to be different ways of coding this effect. Any help appreciated

    Thanks

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Don't trust YouTube. Trust jQuery.com. A simple usage would be something like:

    Code:
    $('#click_here').click(function() {
    	$('#slide_element').slideToggle();
    });
    This would assign a click event to the element #click_here, causing the element #slide_element to toggle in/out of view with a sliding animation.

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks sb65,

    should I need any more help, can I get in contact with you via this forum


  •  

    Posting Permissions

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