You need to sign in to do that
Don't have an account?
sathishsfdc
highlight command button when clicked
Hi , I have 3 command buttons with different logics to be processed on each.
Now i want the command button to be higlighted on click and when 2nd buttton is clicked then only 2nd button must be highlighted.
Is it possible???
Now i want the command button to be higlighted on click and when 2nd buttton is clicked then only 2nd button must be highlighted.
Is it possible???
<apex:page controller="HideAndShow"> <apex:form > <apex:commandButton value="firstButton" action="{!firstButton}"/> <apex:commandButton value="SecondButton" action="{!secondButton}"/> <apex:commandButton value="thirddButton" action="{!thirdButton}"/> <apex:outputPanel id="one" title="one" rendered="{!firstPanel}"> <apex:pageblock > <apex:pageblockSection > <p>1111111111111111</p> </apex:pageblockSection></apex:pageblock> </apex:outputPanel> <apex:outputPanel id="two" title="two" rendered="{!secondPanel}"> <p>222222222222</p> </apex:outputPanel> <apex:outputPanel id="three" title="three" rendered="{!thirdPanel}"> <p>3333333333333</p> </apex:outputPanel> </apex:form> </apex:page>
You can use CSS for that. Save provided css as static resource in salesforce and use it in VF page after <apex:page>
as <apex:stylesheet value="{!$Resource.file name}"/>
THis changes the colour of command button on click for a few seconds and then reverts back to the original colour..
Any other way to achieve this ???