Hi experts,
First of all let me know if my question is completely vague or doesnt make any sense.
What I am trying to do is:
I Have a page which displays some blocks of data (Block can be considered as a row of data). Each block will be seperate <DIV>
and inside this <DIV>
I have Nested two tables.
My question, How do I populate or generate a different "id" for every html tag thats responsible for display. I need to do this because I am using Jquery to process user click events and to generate json data which will be sent back to the server.
Also the data for the screen will come as a json data type. Sample mock of one <DIV>
is attached
<div id="1" class="RedColor" >
<table id="tab1" class="recordTable">
<tr>
<td id="studentName1" class="studentName">
<table id="innertab1" border="0" width="100%" cellpadding="3">
<tr>
<td id="" class="error1" width="172"> </td>
<td id="rollNumber1" class="rollNumber" width="50">12</td>
<td id="" class="studentName" colspan="2">ABC XYZ</td>
</tr>
</table>
</td>
<td width="64" valign="top">
</td>
</tr>
</table>
</div>