I am new in Jquery. I want to retrieve the data value of anchor tag. i.e (88997755 and 11223344) also the value in href attribute i.e(123456,45678). I tried multiple times but am not able to get the these values. I want to set either of the value in id attribute of the third "". need help.
<div class="body" id="List_body">
<table class="list" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr class="headerRow">
<th class="actionColumn">Action</th>
<th scope="col" class="idclass">Id</th>
<th scope="col" class="number">NUmber</th>
</tr>
<!-- ListRow -->
<tr class="dataRow" ">
<td class="actionColumn"></td>
<th scope="row" class=" dataCell">
<a href="/123456" class="commentItem">88997755</a>
</th>
<td class=" dataCell" id="set id 88997755 here using Jquery"> 20</td>
</tr>
<!-- ListRow -->
<tr class="dataRow">
<td class="actionColumn"></td>
<th scope="row" class=" dataCell">
<a href="/45678" class="commentItem">11223344</a>
</th>
<td class="dataCell-" id="set id 11223344 here using Jquery" >20</td>
</tr>
</tbody>
</table>
</div>