1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
$.ajax({
url: "../scripts/mon_script_ajax.php",
data: "id1="+$("#id1").val()+"&id2="+$("#id2").val(),
error: function(jqXHR, textStatus, errorThrown) {
$('#reponse').html('').html('<div class="error">Erreur !</div>');
},
success: function( data ) {
$( "#reponse, #reponse2" ).html( data );
}
});
$("select").change( function(){
$.ajax({
url: "../scripts/mon_script_ajax.php",
data: "id1="+$("#id1").val()+"&id2="+$("#id2").val(),
error: function(jqXHR, textStatus, errorThrown) {
$('#reponse').html('').html('<div class="error">Erreur !</div>');
},
success: function( data ) {
$( "#reponse, #reponse2" ).html( data );
}
});
}); |
Partager