15

th

Jan

jQuery 1.4 and what you will love about it

jQuery 1.4 and what you will love about it

Quick review of the new jQuery release.

Well folks it’s out, the newest baddest, meanest, and leanest jquery ever is here and it rocks pretty hard. What you need to know is this.

The speed has increased exponentially for most of the functions.
# of Function Calls for Popular jQuery Methods

Besides the awesome speed increases they have quite a few new functions and methods that will help you along the way, here is a list of the ones i thought are important.

The .delay() is awesome, i’ve been using the setTimeout function for a while now, and that has gotten old. Now it’s as easy as adding

$("element").delay(200).hide();

That just delayed the hide by 200 milliseconds! HOW AWESOME! I love it, i’m going to use this today!

The .closes() is going to save me so many headaches (and maybe create a couple). It allows you to search for the nearest element to the current one. So far i have been using parents(“element”).find(“the_one”) and it works okay bit i have to use two methods, now its only one!

$(this).closes("the_one");

Now you have found the closes one to the one wink its confusing but i think you get the point.

Well in all honesty today i will only be using the ones from above, even though there are 100 more changes to it i wanna start using it, so bye bye for now. Enjoy!

Related Articles

Comments

By Beard on Sat - Jan 23rd, 2010

FYI - Your article has a typo for the method “closest”, including the code snippet. Thanks for the article! More tutorials/snippets/demos of jQuery 1.4 are encouraged.

By Beard on Sat - Jan 23rd, 2010

Now may be a good time to point out that your comment system has a bug. It lists my comment as being posted on “Jan 31rd, 2010” (should be “Jan 23rd, 2010”)

Have something to share?

Remember my personal information

Notify me of follow-up comments?

Please enter the word you see in the image below: