Return to Snippet

Revision: 16438
at August 4, 2009 07:03 by Meander365


Initial Code
$('.myClassToMatchAgainst').livequery(function(event) {
	//do this
});

Initial URL
http://docs.jquery.com/Plugins/livequery

Initial Description
If you want to trigger an event on an matched element and that element may be introduced into the DOM from an Ajax request, you can still match against it by using the livequery plugin and the following code.

Initial Title
Match Elements Even When DOM Changes

Initial Tags
DOM, jquery

Initial Language
jQuery