+ Start a Discussion
Subhrajyoti NathSubhrajyoti Nath 

Highlight selected radio button

How to underline or highlight the selected radio button in vf page.
Best Answer chosen by Subhrajyoti Nath
Keyur  ModiKeyur Modi
Hi,
I created one dummy page which may help you to resolve your issue.
<apex:page controller="testHighlight">
<script>
    function doAction(Id) {
    
    document.getElementById("Dev").style.backgroundColor = "RED";
    }
</script>
<apex:form >

  <div Id="Dev">
<apex:selectRadio value="{!str}" onchange="doAction(this.Id);" >
 </apex:selectRadio>
</div>
 
 </apex:form>
</apex:page>

Please let me know if this will help you then,

Thanks,
Keyur Modi
 

All Answers

Keyur  ModiKeyur Modi
Hi,
I created one dummy page which may help you to resolve your issue.
<apex:page controller="testHighlight">
<script>
    function doAction(Id) {
    
    document.getElementById("Dev").style.backgroundColor = "RED";
    }
</script>
<apex:form >

  <div Id="Dev">
<apex:selectRadio value="{!str}" onchange="doAction(this.Id);" >
 </apex:selectRadio>
</div>
 
 </apex:form>
</apex:page>

Please let me know if this will help you then,

Thanks,
Keyur Modi
 
This was selected as the best answer
Subhrajyoti NathSubhrajyoti Nath
thanx