Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.ajax({
- url: admin_ajax_url,
- error: function(){
- // will fire when timeout is reached
- },
- success: function( response ){
- //do something
- },
- timeout: 3000 // sets timeout to 3 seconds
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement