Created
January 30, 2014 10:02
-
-
Save anonymous/8705602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function disable_submit_button(obj) { | |
var selector = 'input[type="submit"]'; | |
var in_sub; | |
if (!obj) { | |
in_sub = document.querySelectorAll(selector); | |
} else { | |
var in_sub = obj.querySelectorAll(selector); | |
} | |
if (in_sub) { | |
for (var i=0; i< in_sub.length; i++) { | |
$(in_sub[i]).attr('disabled', true); | |
} | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment