form.valid() should not display validation text?

前端 未结 1 1648
遇见更好的自我
遇见更好的自我 2021-01-16 04:08

With Jquery.validate required fields are showing popup validation on fileds (like below pic) \"enter

1条回答
  •  借酒劲吻你
    2021-01-16 04:29

    Those popups have absolutely nothing to do with the jQuery Validation plugin. That is HTML5 validation triggered by your HTML5 validation attributes. Normally, HTML5 validation is disabled by the jQuery Validate plugin. If you're seeing popups, it means that you've failed to properly initialize the jQuery Validate plugin.

    If you only want to see HTML5 validation popups (visual style and support depends on browser version), then you can not use the jQuery Validate plugin.

    Alternatively, if you want to display the messages from jQuery Validate within tooltips, you'll have to properly integrate your own tooltip concoction or a plugin such as Tooltipster or qTip2.

    0 讨论(0)
提交回复
热议问题