I have a page designed with JQGrid in a div and the form (with fields) in another div. When I select a row in JQGrid I want to populate data for fields in the form based on row id.
<div id="data_div" class="results">
<table id="grid_table">
<tr><td></td></tr>
</table>
<div id="pager" />
</div>
<div id="people-info">
<table><tr><td> <s:textfield key="act.actpeople[0].firstName" /></td></tr></table>
</div>
This works with hardcoding 0,1,2 indexing. I want to write something like:
<div id="people-info">
<table><tr><td> <s:textfield key="act.actpeople[${i}].firstName" /></td></tr></table>
</div>
Using Struts 2 and JSON for JQGrid; In my javascript am obtaining selected row Id but how can I get that Id for indexing? What are my options?