Skip to content

Instantly share code, notes, and snippets.

@bruceyue
Created September 6, 2012 03:17
Show Gist options
  • Save bruceyue/3650603 to your computer and use it in GitHub Desktop.
Save bruceyue/3650603 to your computer and use it in GitHub Desktop.
disable button when save to databasedotcom
<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