after 2 hours of searching I decided to ask my question.
I have a div:
I want to add a div inside th
It's just the wrong order
var e = $(''); $('#box').append(e); e.attr('id', 'myid');
Append first and then access/set attr.