how we can acheive this using javascript any hint helpful.<label class="col-sm-2 control-label">{!$ObjectType.Supply_Level__c.Fields.MCT__c.Label}</label>
<apex:outputPanel id="mctList" styleclass="col-sm-2">
<apex:selectList value="{!selectedMCT}" size="1" styleClass="form-control input-medium">
<apex:selectOptions value="{!mctOptions}" />
<apex:actionSupport event="onchange"
action="{!getVarieties}"
rerender="varietyList"
onsubmit="showLoading();"
oncomplete="hideLoading(); return false;" />
</apex:selectList>
</apex:outputPanel>
Hi Naveen, Please check the below example on conditional highlighting on a VisualForce page.
Hope it will be helpful.
Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.ThanksRahul Kumar