I would like to have a listbox where users can add items they have entered in a text input. The list should also have remove, edit functionality.
What’s the best way to do this (i.e. hardcode or is there a jquery)? I am guessing would need javascript which is fine.
How would I read all the values from JS? I want to concatenate the items with a delimiter so that I can send it via ajax
Here’s an example using jQuery adding all options from a listbox to a comma delimited string;
EDIT I ran across this alternative which is much cleaner IMO.
Here’s a jsFiddle demonstrating this (also includes adding and removing of elements from the list box): http://jsfiddle.net/srGz7/4/