Bonjour

J'ai un tableau Html générer par un script PHP, ou il y a un bouton visu avec l'id différent des enregistrements de la base.

Je voudrais ouvrir à l'aide de jquery et modal une boxe reprenant toute les information du bouton cliqué.

Voici les portions de code existant :

Jquery :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
$('#test').click(function () { clickDispo(); }); 
	function clickDispo() {
		$.ajax({
			  type : 'POST',
			  url : 'info_detail.php',
			  data : "idcajax="+$('#g').val(),
			  success : fonctionRappel });
		function fonctionRappel(reponse) {
			  	alert( "La réponse est " + reponse );
			  };
	}
HTML :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
                      <tr>
                        <td colspan="2" height="25">Société : SDFSDFSD</td>
                        <td>Contact : SDFDSFSD</td>
 
                        <td>Mail : <a href="mailto:toto@titi.com">toto@titi.com</a></td>
                        <td colspan="2" align="center"><a href="#" id="test"><div id="g" style='display:none'>1</div><img src="images/picto/bouton_mise_relation.png" border="0" /></a></td>
                        </tr>
Je désire récupérer la valeur 1 dans l'information $.ajax..data .

Merci de votre aide.

Cordialement gabi77