jquery loop links -
i have php-loop generates different results database, output might this:
<a href="blablabla">blabla</a> <a href="blablabla">blabla</a> <a href="blablabla">blabla</a> <a href="blablabla">blabla</a> <a href="blablabla">blabla</a> <a href="blablabla">blabla</a>
now, know how clicked element #id or .class don't know (and havent found) how clicked link. (i wont show content of it's link in other div. have solution?
$("a").click(function(e){ e.preventdefault(); $("targetdivselector").load(this.href); });
Comments
Post a Comment