Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. jQuery.ajax({
  2. url: admin_ajax_url,
  3. error: function(){
  4. // will fire when timeout is reached
  5. },
  6. success: function( response ){
  7. //do something
  8. },
  9. timeout: 3000 // sets timeout to 3 seconds
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement