hernansartorio / hernansartorio/jquery-nice-select
Unable to reset select value to default
Open
- Dominant language
- JavaScript
- Stars
- 955
- Forks
- 271
- PR merge metrics
- No merged PRs in 30d
Description
Hi All,
I want to reset dropdown list. I can able to reset "" list but not "nice-select" list. Can you please help me?
Here is the code.
``` javascript
$('.clearItem').on('click', function(e){
e.preventDefault();
$('.event-list li').removeClass('hide');
$('.select-events-filter option').prop('selected', function() {
return this.defaultSelected;
});
e.stopPropagation();
});
// $('.clearItem') is a button
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.