Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("a").attr("disabled", "disabled");
- $("a").click(function(event){
- if (this.disabled) {
- event.preventDefault();
- } else {
- // make your AJAX call or whatever else you want
- }
- });
- a[disabled=disabled] { cursor: wait; }
Add Comment
Please, Sign In to add comment