This thread has helped me understand why a section of my code has 
been repeatedly firing without me planning it.

How do you "only attach one if there isn't one already"?  I could add 
a variable into the (in my case) querystring to signal whether we're 
on the first or subsequent cycle and then arrange the js code 
appropriately through an if/else sequence, but does jquery have a 
more efficient way of doing this?

Thanks,

-- Bruce


  At 03:26 p.m. 10/12/2006, you wrote:
>It is being called each time you click an editme element, creating yet
>another binding for every a.test element in the document. You probably
>wanted to limit the context using $("a.test", this) and only attach one if
>there isn't one already.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to