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

idea : provide boolean to remove first choice #4

Open
ibrent opened this issue Mar 16, 2018 · 1 comment
Open

idea : provide boolean to remove first choice #4

ibrent opened this issue Mar 16, 2018 · 1 comment

Comments

@ibrent
Copy link

ibrent commented Mar 16, 2018

I had a scenario where I had to call your function on a select that was dynamically created. The first choice in the select was "Please choose an option".

I removed that option before calling your function with this:
$("#size").find("option").eq(0).remove();

Here is my UI for clothing. Your code is fantastic. Thank you.

screen shot 2018-03-15 at 8 41 36 pm

@ibrent ibrent changed the title two ideas : auto remove first choice & remove clear button idea : auto remove first choice Mar 16, 2018
@ibrent ibrent changed the title idea : auto remove first choice idea : provide boolean to remove first choice Mar 16, 2018
@KhumaloM
Copy link

KhumaloM commented Sep 6, 2018

Cool control, i am also using it. In my case i ensured that the first option is empty : and then modified the js file to ensure the list items are added if there is a value in the option. see snippet below:

image

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