How do I create a div element in jQuery?
First select the parent element with something like
Then use the
.append("<div>foo</div>") function. Alternatively, you can use the
.html() as mentioned in a different answer.