I am using spring with ibatis and jsp page for presentation. My question is I have one jsp page and the value of a drop list I am rendering through the model attribute, as shown below.
<select id="describe" style="width: 500px;">
<c:forEach var="aff" items="${droplist}">
<option name="category" value="${aff.community_category_id}">
${aff.category}
</option>
</c:forEach>
</select>
And here is my radio button:
<input type="radio" id="class" name="type" value="1" checked>Class
<input type="radio" id="Club" name="type" value="2">Club
<input type="radio" id="Course" name="type" value="3">Course
<input type="radio" id="Community" name="type" value="4">Community
On clicking any radio button it needs to change the content of the dropdown list.
Any idea I am not getting.
Thanks.
this’ll just change the content of the describe selet every time you click on one of the radio button and load new values/names taken from listA object