Can jquery capture the dynamic dom events and perform actions

Posted by Zombie15 on Stack Overflow See other posts from Stack Overflow or by Zombie15
Published on 2012-10-10T02:37:27Z Indexed on 2012/10/10 3:37 UTC
Read the original article Hit count: 210

Filed under:
|
|

I just wanted to know if something like this is possible.

Jquery should fire some action on certian custom event.

Like Whenever a new row is added to dom dynamically to table then i have certain action like change the background color to example red.

That should work across the whole site.

Somethings like Event listeners in Doctrine2 or Signals in Django

EDIT:

Basically i want some thing like where i can create custom event

$.AddnewEvent(newRowAdded);

Then i can customise that event with my own functions like

$.newRowAdded(function(){ blah blah });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX