Why is Chrome showing a quot;Please Fill Out this Fieldquot; tooltip on empty fields?(为什么 Chrome 显示“请填写此字段?空字段上的工具提示?)
问题描述
我的客户联系了我,说用户投诉说某些字段现在显示带有消息请填写此字段"的工具提示.我简直不敢相信我所听到的......但是客户端是对的 - 使用最新的 Chrome 版本,某些字段会显示带有此消息的浏览器工具提示,甚至与我的验证器并排显示!
I was contacted by my client saying that users complaint saying that some fields now show a tooltip with a message "Please Fill out This Field". I couldn't believe what I heard... but the client is right - using latest Chrome version some fields show a browser tooltip with this message even side by side with my validators!
有什么问题?我错过了什么?
What's the problem? What am I missing?
谢谢.
我的用户控件生成的HTML如下:
The HTML generated by my user control is as follows:
<input name="tbMontante" type="text" maxlength="8" size="10" tbMontante" class="Montantetextfield"
FieldName="Montante"
Required="True"
AllowDecimalValues="True"
/>
我的文档类型如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
我的浏览器应该使用 HTML 5 来解析它吗?
Should my browser use HTML 5 to parse it?
推荐答案
https://www.w3.org/TR/html5/sec-forms.html#element-attrdef-form-novalidate
您可以在表单中禁用验证.
You can disable the validation in the form.
这篇关于为什么 Chrome 显示“请填写此字段"?空字段上的工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么 Chrome 显示“请填写此字段"?空字段上的工具提示?
基础教程推荐
- 如何在特定日期之前获取消息? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
