Please Help me here to solve below problem.
Code:
<%for(int ind=0;ind<15;ind++){%>
<tr>
<struts-el:select name="OpEnh01pagSincomModelMaintanenceFormBean" property="mdlCode" styleId="mdlDrpDown_+'<%=ind %>'" onchange="modelCodeChanged(this.id)">
<struts-el:options collection="listmodelCodes" property="modelCode" labelProperty="modelCodeDesc" />
</struts-el:select>
</tr>
<%}%>
1) I want 15 dropdowns in 15 rows. I want dropDown's index to identify which dropDown is modified in JavaScript.
2) I want to get a unique id so that I can access it using dom in JavaScript called by onChangeEvent.
I have a form bean Name properties mdlDrpDown1, mdlDrpDown2 and so on..
I tried this format: styleId="mdlDrpDown_+'<%=ind %>'"
but couldn't get it as styleId, property attribute are not runTimeExpr.