Multiple Select Values #1028

Closed
SECGCCA opened this Issue Feb 8, 2013 · 2 comments

Projects

None yet

3 participants

@SECGCCA
SECGCCA commented Feb 8, 2013

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

Collaborator
stof commented Feb 11, 2013

What is the issue in Chosen ?

Contributor
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