Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to return a value to the parent function from ajax javascript

add "async: false," this line to the $.ajax

$.ajax({
  url:url,
  async: false,
  data:params,
  success:function(res){
    
  },
  error:function(err){
  
  }
                            
});
 
PREVIOUS NEXT
Tagged: #return #parent #function #ajax #javascript
ADD COMMENT
Topic
Name
2+1 =