I use the Select Multiple box - and in the default initial state all values are in the "not selected" status what is normal.
Is it possible by any command to select automatically all values (instead of clicking all of them) and the best to select only defined values except the first empty field.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Select Multiple field - how to select all
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Select Multiple field - how to select all
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Select Multiple field - how to select all
in the mean time I found the solution:
FYI
the first line selects all elements and the second one deselects the first empty row
FYI
the first line selects all elements and the second one deselects the first empty row
Code: Select all
$('#search_field_multi option').prop('selected', true);
$('#search_field_multi option:eq(0)').prop('selected', false);
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact: