php - Pass parameter from AJAX
one text
Solution:
I got it.
I did as per below and I could get what I want.
function Get_Search_Params() {
var search_value = $('#SNOW_INC').val();
$.ajax({
url : "get_snow_params.php",
type : 'post' ,
data : { search_value : search_value } ,
success : function(data, status){
$('#GetDetails').html(data);
Desc_BS_CI = data;
Search_INC();
}
});
}
//AJAX function to return incident results
function Search_INC() {
var search_value = $('#SNOW_INC').val();
$.ajax({
url : "find_snow_inc.php",
type : 'post' ,
data : { Desc_BS_CI : Desc_BS_CI } ,
beforeSend: function(){
$('#INCRecords').empty();
$("#INCloader").show();
},
complete: function(){
$("#INCloader").hide();
},
success : function(data, status){
$('#INCRecords').html(data);
}
});
}
Let this help other :)
Source