i want to return value from ajax function to the function where ajax call has been made.
Code:
function val() { var temp=ajaxfun();//ajax function; } function ajaxfun() { //url,type, data will go here and then success: function(somedata){ //here i want to return data i.e. somedata //something like "return somedata" to val(); } }
Comment