@H_404_1@我的表单中有一个HTML文本框(数量)和两个HTML按钮(添加,取消).
<form> <input type="number" min="1" max="100" required /> <button type="button">Add</button> <button type="button">Cancel</button> </form>
我不想让我的第二个按钮(取消)验证表单时点击.
这可能吗?在ASP.NET中,我可以使用CausesValidation =“false”来触发验证.