Table manipulation question..
Hello say suppose this my code
-
<table>
<tr>
<td>
<input type="hidden" name="ctl00$BodyContainer$grvScrap$ctl02$hdnScrapId" id="ctl00_BodyContainer_grvScrap_ctl02_hdnScrapId" value="1" />
</td>
<td>
<a id="ctl00_BodyContainer_grvScrap_ctl02_hypImage"><img id="ctl00_BodyContainer_grvScrap_ctl02_imgUser" class="cssScrapImage" src="Images/Default/DreamHouse.jpg" style="height:70px;width:70px;border-width:0px;" /></a>
</td>
<td>
<span id="ctl00_BodyContainer_grvScrap_ctl02_lblScrap" style="display:inline-block;width:385px;">Bapa</span>
</td>
<td>
<a onclick="return DeleteScrap(this);" id="ctl00_BodyContainer_grvScrap_ctl02_lnlDelete" class="cssScrapDelete" href="javascript:__doPostBack('ctl00$BodyContainer$grvScrap$ctl02$lnlDelete','')">Delete</a>
</td>
</tr>
<tr>
<div id = "DivReply">
<td></td>
<td>
</td>
<td>
<a onclick="return DisplayTextBox(this);" id="ctl00_BodyContainer_grvScrap_ctl02_lnkReply" class="cssScrapDelete" href="javascript:__doPostBack('ctl00$BodyContainer$grvScrap$ctl02$lnkReply','')">Reply</a>
</td>
</div>
</tr>
</table>
</div>
</td>
</tr>
</table>
now suppose i click on delete button then i want its parent <tr> and then its first child (which in this case is a hidden field) and then alert the value that is containing in it. How can i do this? And ya you can't directly use the id's because this is dynamically generated in asp.net. Thanks in advance
waiting for your replies..