gpt4 book ai didi

html - 去除 HTML5 验证中的 "please fill out this field"消息

转载 作者:行者123 更新时间:2023-12-05 01:45:34 25 4
gpt4 key购买 nike

我有一个选项卡系统(隐藏其他选项卡),我找到了在用户在不同选项卡中出错时通知他的方法。

我唯一需要做的就是删除出现在页面左上角的消息“请填写此字段”,因为显然它不漂亮而且没有指向任何东西

screenshot of the popup I want to remove

最佳答案

您可以使用 novalidate 禁用浏览器验证像下面这样:

<form action="https://example.com" method="post" novalidate>
<!-- content of the form -->
</form>

关于html - 去除 HTML5 验证中的 "please fill out this field"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41169381/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com