Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get the list of values currently selected #11

Open
shengc5 opened this issue Jul 17, 2020 · 2 comments
Open

Cannot get the list of values currently selected #11

shengc5 opened this issue Jul 17, 2020 · 2 comments

Comments

@shengc5
Copy link

shengc5 commented Jul 17, 2020

For the life of me I couldn't figure out a way to get the list of selected values. Working off of the demo.html with no action and setIsEnbaled(true), document.querySelector('#testSelect1').value returns a single value of the first item in the list("2" in this case).
document.multiselect('#testSelect1').value returns undefined. Am I doing something wrong here?

@marwanelsamman
Copy link

me exactly the same ..... :(
have you solved this issue ???
or could someone help us in this, please

@Jesfreric
Copy link

Jesfreric commented Aug 11, 2020

Probably a mistake:

<div class="userbox" id=ub_18 onchange="UpdateDatabase(proj_id.value,proj_publ_list.id,proj_publ_list.value)">
	<select id="proj_publ_list" name="proj_publ_list" multiple>  
		<list:forEach items="${proj_publ}" var="publications">
			<option value="${publications}"><list:out value="${publications}" /></option>
		</list:forEach>
	</select>
</div>

The value needs to be called from "id" of select. The onchange method is pointing to the div

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants