I am building an jquery object:
function build(){
var first = $('<div/>', {
class: 'first'
});
var second = $('<div/>', {
class: 'second'
});
var third = $('<div/>', {
class: 'third'
});
second.append(third);
return first.append(second);
}
Now I want to append a new element to the third object after it was returned. Tried obj.find('.third').append(...) but this is not working.
Any ideas how to do this?
Thanks.
third, so you can just dothird.append('your html here...');obj.findis related, what did you try to do?obj? How are you appendingfirstto the DOM?