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>
选择某个radio后,点击 显示 ,背景颜色没有变红哈?
慕斯709654
拉风的咖菲猫
相关分类