element.appendTo('<td>').appendTo('<tr>').appendTo('#ordersList')
Is this supposed to put the element inside a new td element, inside a new tr element inside the #ordersList element (was a table)?
Because I was just getting the naked element inside #ordersList with no wrapping tr/td.
This old site I was trying to troubleshoot seems to be using jQuery 1.4.1 – in case this is a known bug.
appendTo()returns the element you’re operating on, so what you’re actually doing is;td.tdand adding it to a newly createdtr.trand attaching it to#ordersListWhat would work would be something like this;
… which sucks for readability.