JQuery , Ajax and PHP Example


jQuery(document).ready(function(){
// Keypress Up 
$('#ac_compete').keyup(function() {
// Getting Value from textbox 
var res_value = $("#ac_compete").val();
$.ajax({
 type: "POST",
 url: "get_data.php", // Calling php file
 data: "acc_value="+res_value,
 success: function(data){
 $('#quote_price').html(data); // Display result from get_data.php file
 }
 });
});
});
Advertisements