Created
September 6, 2012 03:17
-
-
Save bruceyue/3650603 to your computer and use it in GitHub Desktop.
disable button when save to databasedotcom
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
<apex:includeScript value="{!URLFOR($Resource.res, 'js/jquery-1.4.2.min.js')}" /> | |
<script type="text/javascript"> | |
$j = jQuery.noConflict(); | |
function disableBtn() | |
{ | |
$j(".btn:visible").each(function () { | |
$j(this).css('display', 'none'); | |
$j(this).parent().append('<input type="button" name="inlineSubmitting" title="Submitting" class="btnDisabled" value="saving..."/>'); | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment