如何使用javascript触发本机验证气泡/工具提示以进行表单验证? [英] how to trigger native validation bubble/tooltips for form validation using javascript ?

查看:86
本文介绍了如何使用javascript触发本机验证气泡/工具提示以进行表单验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个附有html5验证(必需等)属性的表单。

I have a form with html5 validation ("required", etc.) attributes attached.

有没有办法触发本机验证气泡的出现/工具提示没有模拟表单的提交按钮上的点击?

Is there a way to trigger the appearance of the native validation bubbles/tooltips without simulating "click" on submit buttons of the form ?

推荐答案

您无法触发本机浏览器表单验证。

You just can't trigger the native browser form validation.

这篇关于如何使用javascript触发本机验证气泡/工具提示以进行表单验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆