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

On Thu, Jan 7, 2010 at 2:01 PM, CreativeMind <aftab.pu...@gmail.com> wrote:

> hi,
> i'm appending a child div in a parent div. parent div has already
> child div's which have classes ws_c1 and plus.
>
> $('<div></div>').addClass('ws_c1').addClass('plus').appendTo($
> ('#'+'parentdiv'+counter));
>
> but when i try to do this
>  $(".ws_c1.plus").click(function() {alert('test');});
> It works on other child div's but not on the appended div's. I've also
> tried with Id's.
> can you plz help me.
>
> regards,
>



-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to