I am stuck with complicated html structure. And also can't change it as it is come from server side(outside).
I am trying to get input radio selected value. But can't.
Following what i have tried But, as i am not much powerful can't solution. And also don't know what i am trying is right Or Wrong.
As there is multiple elements i have tried with children
And also there are other radio inputs in my html markup.
console.log($('.ClearanceItem')[0].rows[0].cells[1].children[0].children[1].children[0].children[1].children.find('input[name="myRadio"]:checked').val());
<table>
<tbody class="ClearanceItem">
<tr>
<td>
<table>
<tbody>
<tr>
<td>
<label>
<input type="radio" checked="checked" value="1" name="Mobile">Clear
</label>
<label>
<input type="radio" value="2" name="Mobile">Pending
</label>
<label>
<input type="radio" value="3" name="Mobile">Waived Off
</label>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tbody>
<tr>
<td>
<label>
<input type="radio" value="1" name="Computer">text1
</label>
<label>
<input type="radio" checked="checked" value="2" name="Computer">text2
</label>
<label>
<input type="radio" value="3" name="Computer">text3
</label>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
Any help would greatly appreciated.