function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ColinKenworthy1ColinKenworthy1 

Highlighting or coloring a table row or cell

I would like to highlight or color either the cell or the entire row when a user clicks on a commandLink in a table. I'm currently using a VF pageBlockTable but want somehow for the user's selection to persist on screen while another part of the screen is redrawn. Also if the user clicks on a different row then the original cell/row should revert to the default color and the newly clicked cell/row should be changed.

 

 

Does anyone have any code snippets / suggestions ?

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

ColinKenworthy1ColinKenworthy1
Thanks, I don't think that one showed up in my forums search.