Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Select Multiple field - how to select all

Questions related to using nuBuilder Forte.
Post Reply
Janusz
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

Unread post by Janusz »

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.
If you like nuBuilder, please leave a review on SourceForge
Janusz
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

Unread post by Janusz »

in the mean time I found the solution:

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
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Select Multiple field - how to select all

Unread post by kev1n »

Or hit Ctrl+A to select all
Post Reply