[jQuery] Re: error binding event with anchor tag

2009-02-13 Thread Ashit Vora
Bingo, It worked... I 've been trying to solve this issue for more than 3 hrs. Thanks James :) On Feb 13, 10:41 am, James wrote: > Yes, it's because they were re-added after you initially binded > events. > There are two ways around that: > 1) re-bind the event to the new widget, or > 2) use jQu

[jQuery] Re: error binding event with anchor tag

2009-02-13 Thread James
Yes, it's because they were re-added after you initially binded events. There are two ways around that: 1) re-bind the event to the new widget, or 2) use jQuery 1.3's new live() function: http://docs.jquery.com/Events/live#typefn Bind once, and you're good to go for future elements also. On Feb