0809JQuery Radio check

来源:互联网 发布:辐射3 mac 中文版 编辑:程序博客网 时间:2024/05/17 22:11
<!DOCTYPE html>
<html>
<head>
<script src="/jquery/jquery-1.11.1.min.js">
</script>
<script>
$(document).ready(function(){
   $('input:radio:last').attr('checked', 'checked');
});
</script>
</head>
<body>
<form>
    <div id='type'>
        <input type='radio' id='radio_1' name='type' value='1' />
        <input type='radio' id='radio_2' name='type' value='2' />
        <input type='radio' id='radio_3' name='type' value='3' /> 
    </div>
</form>
</body>
</html>
原创粉丝点击