Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想手动显示 html5 验证标注弹出窗口。我想检查用户是否在文本框中输入了错误的字符串模式,然后想在文本框中使用标志 required="required" 时显示与我们在 html5 中默认获得的验证标注相同。
你试过html5中form-element的新功能吗?
你可以在这个 mdn 页面的底部找到它们:
https://developer.mozilla.org/en/HTML/Forms_in_HTML