You could use the DOMSubtreeModified event. For example:
$(document).bind('DOMSubtreeModified',function(){
console.log("now there are " + $('a').length + " links on this page.");
})
More Related Contents:
- jQuery callback on image load (even when the image is cached)
- How can I trigger the same function from multiple events with jQuery?
- Firing events on CSS class changes in jQuery
- How can I recognize touch events using jQuery in Safari for iPad? Is it possible?
- Difference between $(this) and event.target?
- How to trigger an event after using event.preventDefault()
- keypress, ctrl+c (or some combo like that)
- Get clicked element using jQuery on event?
- return false from jQuery click event
- onHide() type event in jQuery
- What’s the difference between keyup, keydown, keypress and input events?
- Resize event firing multiple times while dragging the resize handle
- How to pass values arguments to modal.show() function in Bootstrap
- jQuery get input value after keypress
- triggerHandler vs. trigger in jQuery
- jQuery trigger custom event synchronously?
- jQuery.click() vs onClick
- jQuery templating engines [closed]
- Google ReCAPTCHA how to make required?
- Detect image load
- jquery UI Sortable with table and tr width
- Restrict jQuery draggable items from overlapping/colliding with sibling elements
- How to check if all inputs are not empty with jQuery
- Replace text in HTML page with jQuery
- How to iterate json data in jquery
- Is the order objects are return by a jQuery selector specified?
- How do I get the offset().top value of an element without using jQuery?
- jQuery UI Tabs back button history
- fire an event from one view to another in backbone
- What is alternative to use after jQuery 1.9 removed .toggle(function,function)?