hernansartorio / hernansartorio/jquery-nice-select
Change display value depending selected count
- Dominant language
- JavaScript
- Stars
- 955
- Forks
- 271
- PR merge metrics
- No merged PRs in 30d
Description
Hi there !
First, thanks for the awesome plugin.
Here's what i try to achieve :
- change the display value (attribute `data-name`) depending the filter count
- for example, if more than 3 selected items, use attribute `data-short-name`
I was able to do this with the PHP side, means it work on refresh as i count the number of selected items. But I want to make it work on select, the JS way.
Maybe I can use #25 as inspiration ?
In the end, changing on the fly NiceSelect settings to use another attribute, or be able to change `data-name` value and refresh NiceSelect ?
Thanks a lot
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.