Skip to content
Advertisement

Validate select field with valid using chosen-select

When validating the form, using chosen-select does not validate the selects, but removing ochosen-select already works. I show the example:

JavaScript
JavaScript

In the select in which I use chosen-select, there is no value selected, but it does not show the message to the user as the field is mandatory.

Advertisement

Answer

Chosen-select adds visibility:hidden attribute in select box.

You have to validate chosen-select forcefully.

JavaScript

Please add above line just before (".alerta").validate() method.

Advertisement