Overview
The JQuery Blockui Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser[1]. When activated, it would prevent user activity with the page (or part of the page) until it was deactivated. Blockui adds elements to the DOM to give it both the appearance and behavior of blocking user interaction.
//Usage is very simple, to block user activity for the page:$.blockui ();//Blocking with a custom message:$.blockui ({message: ' });//Blocking with custom style:$.blockui ({css: {backgroundcolor: ' #f00 ', color: ' #fff '} });//To unblock the page:$.unblockui ();//If you want the default settings and has the UI blocked for all AJAX requests, it's as easy as this:$ (document). Ajaxstart ($.blockui). Ajaxstop ($.unblockui);
Reference: http://malsup.com/jquery/block/#overview
JQuery Blockui Plugin Demo 2