I'm working on a java web application, I m using spring mvc and jsp pages.
What I am doing: On a jsp page, I m receiving from a controller an arraylist with wave objects, which are defined as a java class (model) and contain the attributes: name, start date, end date.
I am populating a dropdown element from the arraylist with the attribute. name for the wave objects.
<c:forEach var="wave" items="${waveList}" varStatus="iter">
<option value="${wave.name}">${wave.name}</option>
</c:forEach>
The problem: How can I use the other attributes (startdate, enddate), for the wave which is selected from the dropdown and show them on the jsp page, under the dropdown, without refreshing the page.
I know I have to use javascript, but i don't know javascript, I'm guessing it's not a complicated thing to achieve this. If you guys could give me the answer or direct me to a tutorial or something... I would appreciate it!