Open shengc5 opened 4 years ago
me exactly the same ..... :( have you solved this issue ??? or could someone help us in this, please
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
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?