Re: [jQuery] click event is not working

2010-01-07 Thread Charlie Griefer
http://docs.jquery.com/Events/live On Thu, Jan 7, 2010 at 2:01 PM, CreativeMind 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. > > $('').addClass('ws_c1').addClass('plus').appendTo($ > ('#'+'parentdiv'+counter));

[jQuery] click event is not working

2010-01-07 Thread CreativeMind
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. $('').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 ch