How to get the value of jquery response in a variable in jquery or call back function


How to get the value of jquery response in a variable in jquery and how to use call function.

$('#datajquery').load('<?php echo $this->baseUrl ?>/yourpage.php',{ 'b_askprice1':b_askprice1}, function(data){

if(data != 'No result Found!'){
window.location.href = data;
}else{
$('#filter_result').html(data);
}


});

in this code data will return you the response value via jquery
and #filter_result is a id where you want to display your data
and #datajquery is a hidden field id where you response data will be save to check the value

Comments