[jQuery] Re: Event click not fired by code added after the page is loaded

2009-08-17 Thread fay.p...@googlemail.com
Oh, yeah! Thank you very much, Carlos. I am new to javascript and jquery and this post saved my day, really :) So ,I hope that Felix can also fix his problem with your post. Greetings from Germany

[jQuery] Re: Event click not fired by code added after the page is loaded

2009-08-14 Thread Carlos Becar
if you load content with ajax you should send code funcionality later load the content, example. $("#container").load('url',{},function(){ /*here you put codes for fires clicks or something*/ $(".addanswer").click(function() /* code here */ }); }); or use plugin like live or listen

[jQuery] Re: Event click not fired by code added after the page is loaded

2009-08-14 Thread Felix
Ok, I answer myself as I founded the answer, in case it can help someone: instead of $(".addanswer").click(function(event){});, put: $(".addanswer").live("click", function(){...}); On 14 août, 10:46, Felix wrote: > Hello, > > I have a page with a form, that represent questions and the > corresp