ソースコード:
<script type="text/javascript">
    $(function(){
        $("#btn01b").click(function(){
            $(":checkbox").attr("checked", "true");
            $(":radio").each(function (index) {
                $(this).attr("checked", "true");
            });
            
        });
        
    });
</script>
<button id="btn01b">確定</button>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
<input type="radio" />
<input type="radio" />
<input type="radio" />
 
0 件のコメント:
コメントを投稿