+ Start a Discussion
Arnold Joseph TodasArnold Joseph Todas 

Highlight the rows to Bold Text once Account Name clicked

How can i highlight the rows to bold text once i clicked the Account Name here is my code : 
<apex:form id="frm" >
<apex:pageBlock title="Account" id="accounts">
   
      <apex:pageBlockTable value="{!accounts}" var="a" id="list" rules="rows"> 
      
        <apex:column headerValue="Account Name">
            <apex:commandLink rerender="contactDetails" value=" {!a.Name}" action="{!ContactLists}"> 
                <apex:param name="id" value="{!a.id}"/>
            </apex:commandLink> 
        </apex:column>
        
        <apex:column value="{!a.type}" />
        <apex:column value="{!a.billingstreet}"/>
        <apex:column value="{!a.billingCity}" />
        <apex:column value="{!a.billingCountry}" />
        <apex:column value="{!a.billingPostalCode}"/>
        <apex:column value="{!a.createdById}"/>
        
      </apex:pageBlockTable>
      <center>
      <!--<apex:commandButton value="Show Contacts"/>-->
      <apex:commandButton value="Hide Contacts" action="{!EditContact}" rerender="contactDetails" />
      </center>
</apex:pageBlock>

all row should be bold once i click the account name.

Thanks!
AJ
sandeep@Salesforcesandeep@Salesforce
Onclick event you need to apply a function passing row id and then applying  code of below link
http://stackoverflow.com/questions/18502750/how-to-change-the-color-of-an-anchor-tag-in-a-list-for-being-active-while-alread