jquery如何设置单选按钮选中
要设置单选按钮选中,可使用`prop()`方法还是`attr()`方法。
使用`prop()`方法:
```javascript
// 设置单选按钮选中
$("#radioButton").prop("checked", true);
```
使用`attr()`方法:
```javascript
// 设置单选按钮选中
$("#radioButton").attr("checked", true);
```
请将`#radioButton`替换为实际的单选按钮的选择器。
TOP