How to disable apex:commandButton and enable after the action?

<Apex:commandButton Value="Search" action="{!Search}" onclick="this.disabled=true;this.value='Searching..';this.form.submit();" oncomplete="this.disabled=false;this.value='Search';"/>

0 comments:

Post a Comment