<html>
<label>Male</label>
<input type="checkbox" name="sex" id="male" value="0" checked=true>
<br>
<label>Female</label>
<input type="checkbox" name="sex" id="female" value="1">
<br>
<button id="cm">click me</button>
<script>
$(function(){
$("#cm").on("click",function(){
$("#male").attr("type",soubi);
})
})
</script>
![](https://img.haomeiwen.com/i33455/3c62db403cdbd8b0.png)
网友评论