Saturday, March 28, 2009

[jQuery] $.post problem

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.

No comments:

Post a Comment