I have a question regarding the find method.
I want to be able to identify the cell that contains the input
tag.
my html is like
<table>
<tr>
<td> celll </td>
<td> celll </td>
<td> celll </td>
</tr>
<tr>
<td> celll </td>
<td> <span><input type='text'></span> </td>
<td> <span><input type='text'></span> </td>
</tr>
</table>
My Jquery
$('table').find('td').each(function(){
if($(this).find("input").length){
console.log('found')
}
})
My codes can't seem to find it. Any tips? Thanks a lot!