Set array with "Combobox" dataSelect2

Asked

Viewed 89 times

0

I have the following scenario:

  1. The user chooses a value on combobox Select2.
  2. Click on "SAVE" and this combobox Select2 should be stored in an array with the defined events.
  3. After this I would return to point 1, not modifying the data previously guarded.

Does anyone have any idea how I can do that?

  • Could post some code already created, some attempt?

  • you don’t need something like a multi select? https://harvesthq.github.io/chosen/

  • http://www.jqueryrain.com/? ji8YG4nk

  • The goal is not to have a multi-select. But do something like: HTML: <select id="test"></select> Jquery/Javascript var x=[]; x.push($("#test").Select2({ajax:....});) Now I wanted to do another different combo but in the same select x.push($("#test").lectSe2({ajax:....});) This is because I then need to show the two selects side by side with the user-chosen values in each one.

  • They figured out what I needed?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.