Salut tout le monde ,
j'aimerais passer plusieur paramatrer dans la variable data string mais je sais pas comment faire voici ma fonction en ajax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| $(function(){
$('.refuser').click(function(){
var mon_site = $(this).attr('mon_site');
var dataString = 'mon_site='+mon_site;
var parent = $(this).parent().parent();
$.ajax({
type: "GET",
url: "refus.php",
data: dataString,
beforeSend: function()
{
parent.animate({opacity: 0.30}, "slow");
},
success: function()
{
parent.slideUp("slow",function(){$(this).remove();});
}
});
return false;
});
}); |
et ceci est ma button
<a class="refuser" mon_site="<?php echo $_numero;?>" >Refuser </a>
Merci d'avance
Partager