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

Feature: Disable first option in dropdowns. #64

Open
marvin-martian opened this issue Jan 6, 2018 · 0 comments
Open

Feature: Disable first option in dropdowns. #64

marvin-martian opened this issue Jan 6, 2018 · 0 comments

Comments

@marvin-martian
Copy link

As a feature: allow the first option in the a country/region select to have the disabled attribute set. This would force the user to make a country or region selection, and not allow the user to select the options "Select country" or "Select region". See an example of a select with the first option disabled: http://jsfiddle.net/s5Xy2/5/ to get the behavioural idea.

<select class="crs-country" data-region-id="region" data-value="shortcode"  data-crs-loaded="true">
    <option value="" disabled="disabled">Select country</option>
    <option value="AF">Afghanistan</option>
    <option value="AX">Åland Islands</option>
    <option value="AL">Albania</option>...

<select id="region">
     <option value="" disabled="disabled">Select region</option>...
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