如果点击html中的复选框,点击按钮,则需要进入下一页,但并没有
If you click the check box in the html and click the button, you need to go to the next page, but it does not
这个问题是我的第一个问题。
我制作的网站中有可用的政策,按下复选框接受它,呃按钮必须转到下一页,但我得到了我 运行 的帮助,即使我不知道它应该如何需要,但这不起作用
<label for="myCheck">I agree:</label>
<input type="checkbox" id="myCheck" required>
<a href="img.html" class="btn btn-outline-success" role="button">Let's go</a>
如果我理解你的问题:
用户必须检查输入才能让他转到img.html。如果是这样,您可以这样做:
<form action="img.html">
<input type="checkbox" id="myCheck" required> I agree policies
<button type="submit">Let's go</button>
</form>
这个问题是我的第一个问题。 我制作的网站中有可用的政策,按下复选框接受它,呃按钮必须转到下一页,但我得到了我 运行 的帮助,即使我不知道它应该如何需要,但这不起作用
<label for="myCheck">I agree:</label>
<input type="checkbox" id="myCheck" required>
<a href="img.html" class="btn btn-outline-success" role="button">Let's go</a>
如果我理解你的问题:
用户必须检查输入才能让他转到img.html。如果是这样,您可以这样做:
<form action="img.html">
<input type="checkbox" id="myCheck" required> I agree policies
<button type="submit">Let's go</button>
</form>