Jquery .live() running twice ?

This  happens when you click the same element again and again ,to rectify this situation just add .die before it .

$(selector).die(‘click’).live(‘click’, function () {

});

Happy Coding !!!!

 

Leave a Reply

Your email address will not be published. Required fields are marked *