multiselect
multiselect copied to clipboard
required attribute not validating the data
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
you can use this code
$('.multiselect-input').attr('required', 'required');