+ Start a Discussion

Highlighting Visual force page button

Hi I have 6 buttons on my visualforce page Now when I click first button it should get higlighted in colour like wise when i click other buttons they should get highlighted how can i do that

In apex:commandbutton  use 'onmouseover' attribute and invoke a javasciptfunction,In which specify the background color of the button.Hope this helps.

Don't forget to change the background color of the OTHER buttons back to the standard color in this javascript ... and a little CSS would probably help here as well.
Can U give sample code because i am new bie in javascript