[eluser]1mr3yn[/eluser]
Hi guyz.,
Can someone tell,. why jquery wont work., on a menu within a loop.,
foreach( $partners as $p_field) {
print "<span class=\"partners\">";
print "<a href="#" id="showdetails">";
print $p_field->name. "</a> </span><br>";
}
// script
$("#showdetails").click(function() {
runEffect();
return false;
});
The menu is from the database., I want every time I click a menu,. an effect occur., but my problem is that
the effect works on the first menu only., the and when I click the others menu aside from the first,, they ignore the effects.,. is there something wrong with my code???