javascript - Is there a JQuery event to determine when an element's list of children has changed? -


i'm hoping find jquery event tell me when element collection has grown or shrunk after addition/removal of child element.

you can count child elements use conditional statement check whether count changed.

<div>     <span></span>     <span></span>     <span></span>     <span></span>     <span></span> </div>  alert($('div').children().length); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -