1
I’m using the plugin jQuery UI Multiselect.
How do I select one or more options with a click of a button outside of multiselect?
For example, I have a list of 5 items:
- Item Group 1
- Item Group 2
- Other item Group 2
- Other item Group 1
- Item Group 3
As you know, multiselect has two columns: Selected, to the left, and to the right. Suppose that none of the above are selected.
Outside of this multiselect, above or below, I need a button that, when clicking, selects one or more multiselect items at once.
Example buttons:
[Selecionar itens do Grupo 1]
[Selecionar itens do Grupo 2]
[Selecionar itens do Grupo 3]
When clicking on the first one, the items "Item Group 1" and "Other item Group 1" should be selected, passing to the column Selected.
When clicking on the second, the items "Item Group 2" and "Other item Group 2" should be selected, passing to the column Selected, without overwriting the previously selected ones.
It is possible?
Note: this goes for removing selected also
From what I understand, you always want to select a group (Item Group 1 and Other Item Group 1, for example) with just one click, right?
– CesarMiguel
Exact. There will be case that I directly select an item in multiselect.
– morphinduction
Delete my answer as I had not understood that it was an additional plugin.
– utluiz