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

[eluser]1mr3yn[/eluser]
Code:
foreach( $partners as $p_field) {

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

// script

$('document').ready(function(){
     $(".partners").click(function(e) {
            e.preventDefault();
            $('.detail_dialog').dialog('open');
      });
});

How can i submit the value of the class 'partners' on the php form within the same page.
So that the form can recognize what menu I had click,.??
#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.
#3

[eluser]marjune[/eluser]
dudez
#4

[eluser]Thorpe Obazee[/eluser]
[quote author="marjune" date="1245661601"]dudez[/quote]

Wow you have the same website as r3yn.
#5

[eluser]1mr3yn[/eluser]
Quote:Wow you have the same website as r3yn
.

He's just a friend of mine. And my groupmate when we develop that proposed study., which us the website... just ignore it.




Theme © iAndrew 2016 - Forum software by © MyBB