Posts Categorized: jQuery

Unified Event Handling API in jQuery – .live() Vs .on()

Posted by & filed under jQuery.

unified Event Api- .on method

We have been reading about the unified event handling model that brings the event handling under two main methods, i.e. .on() and .off() methods. In the first post of the Unified Event Handling Series, we compared the .on() method with the .bind() method and saw how the .on() method replaces the .bind() method. In the Continue reading…

Unified Event Handling API in jQuery – .bind() Vs .on()

Posted by & filed under jQuery.

unified Event Api- .on method

In the article about the new features in jQuery 1.7, we read about the new .on() event that replaces the .bind(), .live() and .delegate() events. jQuery had a strong Event Handling mechanism with a set of methods for handling various events. The number of these event handlers kept growing with each new release and the Continue reading…

How to select multiple DOM elements with jQuery

Posted by & filed under jQuery.

jQuery Multiple Selectors

We had a series of articles explaining various ways of selecting the DOM elements with jQuery.  We read about basic and hierarchical selectors, DOM filters and a special case of form filters. We saw an example of multiple selections in the post about the basic and hierarchical selectors. It is a very common requirement to Continue reading…

DOM Insertion with jQuery – .append() and .appendTo()

Posted by & filed under jQuery.

jQuery .append() Method

jQuery makes it really easy to add new stuff to existing DOM elements. There are various methods provided in jQuery to perform different types of insertions. The .append() is one such jQuery method that inserts the specified content to the end of each element in the set of elements matched by the jQuery filter. The Continue reading…

Custom Events in jQuery

Posted by & filed under jQuery.

jQuery Custom Events

JavaScript recognizes many DOM events. There are many standard JavaScript events that are supported in popular libraries like jQuery. By standard events, we mean the browser events, DOM events and page load events. The most common examples of such events are click and mouseover events.
Events are used to trigger certain actions. Very often you need to define some Continue reading…