hernansartorio / hernansartorio/jquery-nice-select

Change display value depending selected count

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.