When I make an ajax call, I get the ID of my input and I add the id to my json data.
I need to get this id to use it id my success function.
IE : In data id = 1, i need in success to get .qte1
If you have any idea... :)
$('#action-button').click(function() {
$.ajax({
type: 'POST',
url: 'get_qty.php',
data: {
'id': $('input[name=qte]').val(),
},
success: function(data) {
$(".qte").html("");
$(".qte").append(data);
}
});
return false;
});