[jQuery] Re: When DOM elements are created and inserted into the document

2009-06-30 Thread Josh Nathanson
The LiveQuery plugin allows you to do this. Do a search for LiveQuery in the jQuery plugins area. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Khai Sent: Tuesday, June 30, 2009 5:34 PM To: jQuery (English) Subject: [jQuer

[jQuery] Re: When DOM elements are created and inserted into the document

2009-06-30 Thread James
I think the best way is to execute the function directly after the insertion/removal of an element. Otherwise, you can use a setInterval() and do a check on the element count with: $("*").length; to see if it changed. On Jun 30, 2:34 pm, Khai wrote: > Hello, > > I want to be able to run a funct