Multiple Select Values #1028

SECGCCA opened this Issue Feb 8, 2013 · 2 comments


None yet

3 participants

SECGCCA commented Feb 8, 2013

document.getElementById("id").value returns a single value for multi value field.

stof commented Feb 11, 2013

What is the issue in Chosen ?

pfiller commented Apr 16, 2013

Returning the first selected value of a select box is the expected behavior when using .value. You'll actually need to loop through all options to get all selected values if you want to use the vanilla.js way. Otherwise, jQuery gives the value with a simple $("#id").val()

@pfiller pfiller closed this Apr 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment