Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

JQuery Validate cannot verify how the chosen-select element resolves

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "jQuery Validate can not verify how to solve the chosen-select element". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope that this article "jQuery Validate can not verify how to solve the chosen-select element" can help you solve the problem.

After the chosen-select element executes the chosen () method, it adds a hide to the select element, and then reconstructs a drop-down list that looks like select.

By default, jQuery Validate ignores the validation of hidden elements, so we will exclude select. Add the ignore attribute to the parameters of the validate () method to remove the select from the ignored hidden elements.

("select") .validate ({ignore: ": hidden:not (select)"})

The hidden selector selects hidden elements Elements in the following cases are hidden elements:

Set to display:none

Form elements with type= "hidden"

Width and height set to 0

Hidden parent element (this also hides child elements)

Note: this selector does not work on elements of visibility:hidden and opacity: 0.

That's all for "jQuery Validate can't verify how the chosen-select element is resolved". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report