JS

<script>
    function check(){
        if(!document.getElementById("EULA").checked){
            alert("请阅读《最终用户许可协议》,勾选复选框后提交!");
            return false
        };
        return true
    }
</script>

Form

<form id="form1" name="form1" method="post" action="">
    <label>
        <input type="checkbox" name="EULA" id="EULA" /> 我已阅读并了解 <a href="./help/onlyforEULA.php">《最终用户许可协议》</a>
    </label>
    <label>
        <input type="submit" name="button" id="button" value="提交" onclick="return check()" />
    </label>
</form>

友情提示:本站所有文章,如无特殊说明或标注,均为何星星原创发布。与此同时,趋于近年来本站的文章内容频繁被他站盗用与机器采集,现已全局禁用网站文字内容操作,了解详情或转载文章请 点此 继续!

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注