html - 避免浏览器默认行为需要输入

标签 html css internet-explorer google-chrome firefox

我想做的是避免浏览器在我尝试提交包含空输入的表单时显示工具提示。我正在使用插件进行验证,但我不想让两个工具提示说的内容基本相同。

最佳答案

在表单上你可以添加novalidate属性:

<form novalidate>
  <input required/>
</form>

关于html - 避免浏览器默认行为需要输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23827979/

相关文章:

使用 Jquery 插入 LI 元素时,JavaScript 有时不会调整 UL 元素的高度

python - 如何使用 postgresql 从 Django 中的两个表中检索数据

html - 仅使用 CSS float 我的 div

html - 在 IE 中悬停时导航中断

css - 高度 100% 不适用于 Internet Explorer 8 中的 DIV 标签

html - 显示标签定制

html - 如何居中无序列表的图像?

html - CSS3 中的砌体布局?

javascript - Internet Explorer 中的 ACE 代码编辑器问题

javascript - 在 Internet 区域处于高安全模式时,网站在 IE8 中出现乱码