function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
hi,
i want to keep a button called submit, if the user hits the button . it wont be live for next time if he clicks.
pls help me out to over come this problem...
Hi,
Try the below code sample:
<apex:page id="p" ><script>function disablebutton(){alert('hello');document.getElementById('p:f:cmd').disabled=true;}</script><apex:form id="f" ><apex:commandButton onclick="disablebutton()" id="cmd" value="clickme"/></apex:form></apex:page>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi,
Try the below code sample:
<apex:page id="p" >
<script>
function disablebutton()
{
alert('hello');
document.getElementById('p:f:cmd').disabled=true;
}
</script>
<apex:form id="f" >
<apex:commandButton onclick="disablebutton()" id="cmd" value="clickme"/>
</apex:form>
</apex:page>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.