How to select a td from a table with id using jQuery

javascript, jquery

Solution

I found the answer:

`var tds = tr.find("td[id='Status']");` //what i was looking for

Thanks for ur support and special thanks for voting my genuine question 2 points down :D, since iam not point hungry, No offense :-)

Problem

I have a table with td's with id. I need to select those td's and reorder the columns. ``` $('table tr').each(function () { var tr = $(this); var tds = $('#Status'); var tdA = $('#Address'); alert(tds.innerHtml); //Here am getting a blank msg tds.remove().insertAfter(tda); //This is what i need to do }); ```

Original source

Related problems