I'm building an AJAX app. I've got several menus, where there is a list of possible options (provided by the server). The user can choose or unchoose any of those values. When the user makes a choice, it is saved to the server.
So if the total list is [A, B, C, D]
, it might look something like this:
User has chosen:
-A [Delete]
-B [Delete]
Unchosen (in a dropdown menu):
-C [Add]
-D [Add]
Then if the user chooses C
, it would look like:
User has chosen:
-A [Delete]
-B [Delete]
-C [Delete]
Unchosen (in a dropdown menu):
-D [Add]
C
is removed from the list of choices, and added to what the user has chosen.
Is there a plugin that does this, or should I roll my own?