multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

required attribute not validating the data

Open ambatidilip opened this issue 5 years ago • 1 comments

When i give required to the select html attribute and applied plugin, its not capturing the select name attribute and not displaying error message if you haven't selected any value.

Ex:

<select id="someId" name="someName" required>
<option>....</option>
</select>

<div id="errors">
Select at least one hobbies
</div>

on HttpPost someName is empty

ambatidilip avatar Apr 15 '20 09:04 ambatidilip

you can use this code $('.multiselect-input').attr('required', 'required');

M-Kamel avatar May 05 '21 02:05 M-Kamel