Welcome Guest, Not a member yet? Register   Sign In
Jquery and PHP help..
#2

[eluser]OES[/eluser]
An easy way would be to add ID's to your links.

Code:
foreach( $partners as $p_field) {

      print "<span class=\"partners\" id=\"$p_field_name\"><a href="">$p_field->name</a></span>";
  }

// script

$('document').ready(function(){
     $(".partners").click(function(e) {
       e.preventDefault();
       var clicked = this.id;            
       $('.detail_dialog').dialog('open');
     });
});

Then in this example clicked will hold the ID of the clicked link.

Hope this helps.


Messages In This Thread
Jquery and PHP help.. - by El Forum - 06-17-2009, 11:50 PM
Jquery and PHP help.. - by El Forum - 06-18-2009, 02:00 AM
Jquery and PHP help.. - by El Forum - 06-21-2009, 10:06 PM
Jquery and PHP help.. - by El Forum - 06-21-2009, 11:03 PM
Jquery and PHP help.. - by El Forum - 06-21-2009, 11:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB