All jQuery 1.7

jQuery.isNumeric in jQuery 1.7

As mentioned in my previous post that jQuery 1.7 is released and ready to use. With jQuery 1.7, a new function is introduced which is called "isNumeric()". This is a very handy and small utility introduced in 1.7.As the name of the function clearly suggest that it checks whether the passed value is numeric or […]
Read the rest of this entry »

How to use jQuery on() and off() method

Using jQuery .on() and .off() – AndiSmith.com jQuery 1.7 was released in month of November last year and with the jQuery 1.7, do you know that live() method is deprecated. And new method was introduced to replace live() called "on()". "jQuery on()" is a new way to attach events to selectors. The on() event handler […]
Read the rest of this entry »

What’s new in jQuery 1.7.2

jQuery team has released a new version of jQuery library which is 1.7.2. jQuery 1.7.2 is looking good! The release candidate went smoothly so they have released it to your eager hands today. You can get the oven-fresh code from the jQuery CDN now, with Google and Microsoft CDNs soon to follow: http://code.jquery.com/jquery-1.7.2.min.js (minified, production) […]
Read the rest of this entry »

jQuery Namespacing with on() and off() method

With jQuery 1.7, jQuery team introduced 2 new ways to attach and remove events. on() method is used for attaching events to DOM elements, and off() method is used to removed event handlers. And you should use on() and off() only to attach and remove handlers, instead of bind(), live() and delegate(). Related Post: bind() […]
Read the rest of this entry »

Direct vs Delegated Events with jQuery on() method

jQuery added a new method called  on()  in release 1.7 which provides all functionality for attaching event handlers. And it has made other event handler event like live() and delegate() dead. This method was introduced due to performance issue with live() method. Related Post: jQuery Name-spacing with on() and off() method empty() vs remove() vs […]
Read the rest of this entry »

jQuery on() – Click event not working for dynamically added element

My colleague got stuck into a problem where he was using jQuery on() method to attach the click event handlers but click event was not working for dynamically added elements. Although he knew that .bind() method doesn't work for dynamically added element but he was quite sure about .live() and .on(). Since .live() method is […]
Read the rest of this entry »

Responsive Menu
Add more content here...