Click here to Skip to main content
15,885,694 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Dear Friends,

I have a radio buttonlist on my asp.net webpage. user can select from the list on options from the radio button.

so, when i select particular option, the dot inside the radio button should change to RED color.

Please help.


Thanks.
Posted

 
Share this answer
 
Hi,
You might wana check the below link:

http://stackoverflow.com/questions/4253920/how-do-i-change-the-color-of-radio-buttons[^]

you will have to perform some javascript tricks n stuffs..

hope it helps..

regards
anurag
 
Share this answer
 
Html
HTML
<input type="radio" name="rbtn" id="RadioGroup1" value="radio2" onclick="ChangeColor();">
    <span id="rad2">Radio2</span></input>

JavaScript
function ChangeColor() {
            var lableText = document.getElementById('rad2');
            lableText.style.color = "red";
        }


you can achieve your target like this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900