hobby:<input id="x1" type="radio" name="sports" />x1
<input id="x2" type="radio" name="sports" />x2
<input id="x3" type="radio" name="sports" />x3
<input type="button" value="" onclick="ShowChecked()">
<br>
<script>
function ShowChecked(){
$("input").css("backgroundColor","");
$("input:checked").css("backgroundColor","red");
}
</script>
after selecting a radio, click to show that the background color does not turn red, huh?