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
Feature Request: Do not show "Please select one of the following..." #87
Comments
I fixed it like this:
and
So no need for pseudo :first. |
In the latest version you can set the 'title' attribute of a multi select and it will show a prompt that does not appear in the list. Currently you cannot do this to a standard select, as the standard select requires a selected value. |
Thanks. Then I'll stick to my solution. |
You can now add the <select class="selectpicker" title="Please Select...">
<option data-hidden="true"></option>
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
<option>Onions</option>
</select> |
Thanks! This gets ugly however if the plugin is disabled on the page... Martijn Op 30 apr. 2013 om 00:42 heeft caseyjhol notifications@github.com het volgende geschreven:
|
Is it possible to NOT show the "Please select one of the following..." item? I usually have that one as the first item, with an empty value, so that jqBootstrapValidation will mark it as invalid if no other value is selected.
However, that item is now shown in both the dropdown AND the first item in the openend div. It should be only in the dropdown.
For usability's sake, I understand that the "empty" item could be reselected if someone doesn't know what to select, but that would be covered by adding a last item "None of the above".
Also, I've needed to add CSS as .control-group.error .dropdown-toggle to be the same as .control-group.error select, is there a way for this to happen automatically? This is also for the validation: in my CSS, I make the outline red if no value is in the select at submit.
The text was updated successfully, but these errors were encountered: