Sử dụng tính năng buttonset JQ-ui củaBỏ chọn tất cả các đài phát thanh JQuery buttonset cùng một lúc
<script>
$(function() {
$("#radio").buttonset();
});
</script>
<div id="radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
Có cách nào để bỏ chọn tất cả các nút radio của buttonset cùng một lúc?
nên '$ (" #radio ")' thay vào đó '$ (" radio ")'? – fcalderan
@Dev bạn đã từng sử dụng jQ-UI chưa? – heron