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

exclude default 'select' value in form select element #20

Open
oshihirii opened this issue Jul 11, 2014 · 0 comments
Open

exclude default 'select' value in form select element #20

oshihirii opened this issue Jul 11, 2014 · 0 comments

Comments

@oshihirii
Copy link

Is it possible to exclude the default 'select' value in a form select element?

jQuery

var myVariable = new LiveValidation('my_id', { validMessage: 'valid input', wait: 500});
myVariable.add( Validate.Exclusion, { within: [ 'select' ] } );

HTML

<select required name="my_name" class="my_class" id="my_id">
<option selected value="select">select</option>
... other options
</select>

The above is not working, ie a valid message is shown when selecting an allowable option, but when selecting 'select' and moving on it is not raising validation errors.

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

1 participant