Displaying JSP page in spring MVC with server data, I'm sending data from spring to JSP page and based on the data object value need to unhide another row.
Part of my JSP page:
<tr>
<td align="center"><select style="width: 300px" id="menu6" name="menu6" size=10 multiple>
<c:forEach var="categoryTwo" items="${dataObj.categorySubcategoryNameAndIds}" >
<option value="${categoryTwo.categoryTypeId}" categoryType="${category.categoryTypeId}" >${categoryTwo.feedCategoryOrSubCategoryName}</option>
</c:forEach>
</select><br /></td>
</tr>
<tr id="newRow" style="display: None">
<td>
something to show
</td>
</tr>
The data which is displayed is coming from the server and is a list of object , based on the value of one the object member i.e categoryType(int variable) i have to unhide the row with id='newRow'.
problem is, i'm not able to figure out the way to push the categoryType Value to a javascript function.
The value of categoryType should be 5 to unhide the row with id='newRow'