Where are you defining the 'click'? Before the $.post, in the success callback function of $.post, or after the $.post?
On Mar 28, 5:10 am, paljo <constantinos_...@hotmail.com> wrote: > Hi, > > I' m using $.post in this form: $.post("rpc.php",{data:data},function > (result){$('.aDiv').html(result);}); > Basically i' m searching inside a database and the results are echoed > from rpc.php in this form: > <ul><li class="aClass"><a href="#">Some text</a></li>...........</ > ul> . Everything works fine except that the links don't work. > So if i use something like:$(".aClass").each(function(){ > $(this).find('a').click(function{ > bla bla bla > > }); > }); > > it won't work. How can i make them work? > > Thanks in advance.