jQuery doesn't provide a method similar to hasAttribute() to determine whether a given attribute exists in the DOM. However, we can use the attr() method for this task. In fact, this method returns a boolean value when used with conditional statements.
jQuery: table pagination
Paginating a table with jQuery requires only the use of a repeated CSS class used as placeholder for our table rows. Most of all, tables must be properly marked up using thead and tbody. Otherwise, selecting rows becomes quite troublesome. Let's see the details.
jQuery: deferred objects and animations
Posted on September 2, 2011
The jQuery's deferred objects, introduced in jQuery 1.5, allow us to concatenate synchronous and asynchronous actions in a chain of actions. They can be applied to animations in order to avoid nested functions, thus increasing code readability and maintainance.