Learning jQuery RSS-feed
Using jQuery’s .pushStack() for reusable DOM traversing methods
The .pushStack() method has been in jQuery since before version 1.0, but it hasn't received a whole lot of attention outside of core developers and plugin authors. While its usefulness may not be immediately apparent, it can come in really handy in some situations, so I'd like to take a quick look at what it [...]
Posted on 20 December 2011 | 6:51 pm
Source: Learning jQuery
In the beginning (well, beginning with jQuery 1.2.3 in early 2008) there was the jQuery.data() API. It offers a way to associate JavaScript data — strings, numbers, or any object — with a DOM element. As long as you manipulate the DOM element with jQuery, the library ensures that when the DOM element goes away, [...]
Posted on 2 September 2011 | 4:52 pm
Source: Learning jQuery
Among all of the great fixes and additions to jQuery 1.6, I'm happy to say that jQuery.map() now supports objects! The previous map only supported arrays. With other libraries already offering object support for map, it was a nice addition. Let's say you want to collect an array of object keys from a JSON object. [...]
Posted on 3 May 2011 | 8:39 pm
Source: Learning jQuery
Merging jQuery Deferreds and .animate()
Editor's Note: This article originally appeared on danheberden.com. jQuery’s .animate() method, and the shorthand methods that use it, are fantastic tools to create animations. Creating animations that link together to achieve a particular effect, and do something specific at the end of the animation, can be a painful, messy task. Luckily, we have .queue() for [...]
Posted on 17 February 2011 | 12:46 pm
Source: Learning jQuery
Half-baked tutorials and plugins have been stacking up for months in my virtual kitchen, waiting for me to fire up the oven, finish the cooking, and spread them out on the table. For some reason, though, I've become less and less sure about whether I've put all the right ingredients into the mix. It's irritating, [...]
Posted on 10 September 2010 | 11:28 am
Source: Learning jQuery
These jQuery resources will set you on the path towards mastering jQuery. Written Articles Getting Started with jQuery - this is the official jQuery getting started guide. jQuery for JavaScript Programmers - Simon Willison (creator of django) gives you an introduction to jQuery for people who already understand JavaScript. jQuery Crash Course - Nathan Smith [...]
Posted on 7 July 2010 | 3:11 pm
Source: Learning jQuery
The jQuery Autocomplete plugin got a successor recently, the jQuery UI Autocomplete. In this guide we'll look at the old plugin API step-by-step, and how to migrate to the new API. At first it may look like the new plugin supports barely any of the old options. We'll see how all the old options can [...]
Posted on 23 June 2010 | 1:28 pm
Source: Learning jQuery
A jQuery UI Combobox: Under the hood
Update on 2010-08-17: This article was updated to reflect the changes to the combobox code in jQuery UI 1.8.4 The jQuery UI 1.8 release brings along the new autocomplete widget. An autocomplete adds a list of suggestions to an input field, displayed and filtered while the user is typing. This could be attached to a [...]
Posted on 8 June 2010 | 10:00 am
Source: Learning jQuery
Now you see me… show/hide performance
I just got back from the jQuery conference in San Francisco. Wow, what an event. In addition to some incredible talks, I had the opportunity to speak with Rey Bango, Johnathon Sharp, and, of course, John Resig. Any conference where you get to talk to some of the most influential people in jQuery is a [...]
Posted on 4 May 2010 | 12:51 pm
Source: Learning jQuery
Editor's Note: When I started this blog nearly three years ago, one of the first things I did was write a series on showing and hiding elements on a page. The posts were very basic, as was my knowledge at the time. At best, they demonstrated an incomplete answer to the question of how to [...]
Posted on 23 April 2010 | 1:42 pm
Source: Learning jQuery






