I use .append to add to a div
.append
$(this).append(\'test\');
how can I search for a
What you also should consider, is keeping a reference to the created element, then you can easily remove it specificly:
var newUL = $('test'); $(this).append(newUL); // Later ... newUL.remove();