Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required attribute not validating the data #8

Open
ambatidilip opened this issue Apr 15, 2020 · 1 comment
Open

required attribute not validating the data #8

ambatidilip opened this issue Apr 15, 2020 · 1 comment

Comments

@ambatidilip
Copy link

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

@M-Kamel
Copy link

M-Kamel commented May 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants