1. Code
  2. Plugins

Live Query

If you've ever dynamically created an element using Javascript, you'll no doubt have experienced problems with binding events to these elements. Luckily, a small jQuery plugin created by Brandon Aaron (jQuery team member), called Live Query, makes this a cinch.

"Live Query utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated."


This will fire the click event on all anchor tags - even the ones that have been dynamically generated with AJAX. For more information, refer to the documentation.

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.