Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

added "filter" option, to dinamically exclude given <option>s from <select> #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madbob
Copy link

@madbob madbob commented Apr 28, 2017

Requires update of the compressed version.

@ctissier
Copy link

ctissier commented Mar 16, 2018

+1 - Nice addition and works like a charm.

As I didn't find the documentation for this new feature, here is how to use it, it might help someone:

Add class="hidden" to any <option> you want to hide. That's it!

And if the class="hidden" is programmatically added, you'll just need to refresh your simpleselect with $(selector).simpleselect('refreshContents') to make the select reflect the changes.

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

Successfully merging this pull request may close these issues.

2 participants