所有JQuery的無線電buttonset使用JQ-UI的buttonset功能取消選中一次
<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>
有什麼辦法來取消buttonset的所有單選按鈕一次?
應該'$(「#radio」)'而不是'$(「radio」)'? – fcalderan 2012-07-25 09:43:16
@Dev你曾經使用過jQ-UI嗎? – heron 2012-07-25 09:49:28