[jQuery] Re: Hi i want to bind function after ajax call.

2009-05-28 Thread anotherh...@gmail.com

What about using the live function instead of bind?

http://docs.jquery.com/Events/live

On 28 mei, 08:12, msk  wrote:
> Hi All,
> in my scenario i have use class on an element and attach function with
> that class,
> Now i am loading dynamic content into div .Problem is i want to bind
> again all the events which was use with class.So is there any way to
> rebind all the class event of DOM.Otherwise i have to do labour job to
> bind one bye one function with their class.
>
> thanks.
> MSK


[jQuery] Re: Hi i want to bind function after ajax call.

2009-05-28 Thread anotherh...@gmail.com

If you use live instead of bind your future DOM elements also get the
event handlers attached.

http://docs.jquery.com/Events/live

On 28 mei, 08:12, msk  wrote:
> Hi All,
> in my scenario i have use class on an element and attach function with
> that class,
> Now i am loading dynamic content into div .Problem is i want to bind
> again all the events which was use with class.So is there any way to
> rebind all the class event of DOM.Otherwise i have to do labour job to
> bind one bye one function with their class.
>
> thanks.
> MSK