checkBox

<h2>Index</h2>
<input type="checkbox" name="test" value="值1"  id="test"/>是否选中


<a onclick="send()">点击</a>
<script src="~/wwwroot/lib/jquery/dist/jquery.js"></script>

<script type="text/javascript">

    function send() {
        var id = document.getElementById('test');

        alert(id.checked)
    }

</script>
原文地址:https://www.cnblogs.com/deepalley/p/13215539.html