hernansartorio / hernansartorio/jquery-nice-select
The return value for sending a form
- Dominant language
- JavaScript
- Stars
- 955
- Forks
- 271
- PR merge metrics
- No merged PRs in 30d
Description
could not pass a value through a post form. We made improvements :
after line 82:
```php
.addClass('option' +
($option.is(':selected') ? ' selected' : '') +
($option.is(':disabled') ? ' disabled' : '')).html($option.text()));
/// add link for dom element Option
$dropdown.find('ul li:last').get(0).niceSelectItem = $option.get(0);
```
onClick event
after line 121:
```php
$option.addClass('selected');
/// correct selected Option element on Select tag
$option.get(0).niceSelectItem.selected=true;
```
and after line 150 and line 162:
```php
$next.addClass('focus');
$next.get(0).niceSelectItem.selected=true;
```
```php
$prev.addClass('focus');
$prev.get(0).niceSelectItem.selected=true;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.