How do I use AJAX to return a variable in PHP? I am currently using echo in my controller to display a price on dropdown .change in a div called pr
dropdown .change
div
if u are returning only single value from php respone to ajax then u can set it hidden feild using val method
$("#hidden_fld").val(return_val);