onwebdev

Web development by Gabriele Romanato

  • Home
  • Curriculum Vitae - Resumé
  • Demos, examples and experiments

jQuery: check if an attribute exists

Posted on September 4, 2011

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.

Read more »
Posted in dom, jquery |
Email This BlogThis! Share to X Share to Facebook

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.

Read more »
Posted in jquery |
Email This BlogThis! Share to X Share to Facebook

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.

Read more »
Posted in jquery |
Email This BlogThis! Share to X Share to Facebook

Post navigation

← Previous Next →

Archives

Proudly powered by Blogger. Converted by Smashing Blogger for LiteThemes.com.