1.

Solve : Jquery wont work on php loop.,?

Answer»

Hi guyz.,
  Can someone tell,. why jquery wont work., on a menu within a loop.,

    foreach( $partners as $p_field) {

       print "";
       print  "";
       print  $p_field->name. "[/url]

";
    }

 // 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???  I already figure it out,,,, I just USE class INSTEAD of id..



Discussion

No Comment Found