I have table
<tr>
<td id="id">2</td>
<td id="type"><span class="label">snippets</span></td>
<td id="name">all</td>
<td id="time">None</td>
<td id="status">None</td>
<td id="actions"><i class="icon-refresh" id="refresh-parser"></i></td>
</tr>
And i have this jQuery code
$(document).on('click', '#refresh-parser', function(){
var before_content = $($(this).parent());
var parser_id = $('#refresh-parser').parent().parent().children("td:first");
var parser_time = $('#refresh-parser').parent().parent().children("td")[3];
//$($(this).parent()).html('<div class="loading"></div>');
});
Yes, this code works, but how i can do it by id
on my td
elements?
Thanks and sorry for such silly question...