I use .append to add to a div
.append
$(this).append(\'test\');
how can I search for a
You could use remove(). More information on jQuery remove().
remove()
$(this).children("ul").remove();
Note that this will remove all ul elements that are children.
ul