Learn JQuery Tutorial 3 | Functions

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,109
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 20, 2010

Join Forum @ http://jream.com/forum
Create a series of events after you click a button. We will be using a function to do this!

http://jream.com

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (JREAMdesign)

  • Hi, thanks for the videos. I'm trying to figure out how to get the toggle button you see on YouTube, ie the one which points downwards when text is hidden; and upwards when the text is being shown. Can you help?

  • @NicholasLeeson I would use JQuery for that. Basically it looks like umm.

    $('#item').click(function() { $('#more_content').slideToggle­(); $('#button').toggleCss('class1­', 'class2');

    });

  • @JREAMdesign Woops I had thought this was a PHP tutorial, haha.. Thats why I said use JQuery :P

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • Thank you for this tutorial. I didn't even know about toggle() function... :)

  • Something to note. hide(), toggle() and the like have an optional parameter for how long it will take to do that.

    So, $('#hello').hide(1000); will make the div *fade out*. The 1000 is the number of milliseconds the animation will take.

    There is also a fadeIn() and fadeOut(), which do a similar job.

  • You are simply amazing... Nice tutorial!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more