+ 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: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:commandButton value="Show Contacts"/>-->
      <apex:commandButton value="Hide Contacts" action="{!EditContact}" rerender="contactDetails" />

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

Onclick event you need to apply a function passing row id and then applying  code of below link