<body>
<input type="radio" name="gender" id="man" value="male" oninput="ss()">
<label for="man" style="color: #666666;">男</label>
<input type="radio" name="gender" id="woman" value="female" oninput="uu()">
<lable for="woman" style="color: #666666">女</lable>
<script type="text/javascript">
function ss(){
var vv=$(‘input:radio:checked‘).val()
console.log(vv)
}
function uu(){
var vv=$(‘input:radio:checked‘).val()
console.log(vv)
}
</script>
</body>
原文地址:https://www.cnblogs.com/yangwan/p/10261995.html
时间: 2024-10-10 18:20:36