Click here to view this site's accessibility statements.
For those of you unacquainted with jQuery, my opinion is that it is the next best thing to toasted cinnamon-raisin bagels with cream cheese from Ess-a-Bagel. jQuery, which earned the Open Source Application of the year award for 2009, helps web developers attach wonderful functionality to existing sites with a very small footprint.
One of the things I really like about jQuery is that there are so many ways of doing the same thing. This of course can lead to a bit of madness when trying to remember what it is that you need to write, so I figured that it might be useful to have a sort of comparison:
1. $(‘.testbox’).toggle(‘slide’, {direction: ‘up’}, 500);
2. $(‘.testbox’).slideToggle(‘500’);
3. $(‘.testbox’).slideDown(‘500’);
4. $(‘.testbox’).hide(“slide”, { direction: “up” }, 500);
I hope this is helpful! More tutorials to come soon!
This entry was posted on Thursday, December 10th, 2009 at 11:24 pm, EST under the category of Coding. You can leave a response, or trackback from your own site.