Karem
Karem

Reputation: 18103

jQuery: prepending after the stuff

if i have

<div id="wallCommentResponse<?php echo $displayWall["id"]; ?>">
test
</div>

And:

 $('#wallCommentResponse' + wallID).prepend("lorem ipsum lorem ha!");

I want the prepended stuff come after the text inside it already and not before it..

How can i do this?

Upvotes: 1

Views: 103

Answers (2)

Ken Redler
Ken Redler

Reputation: 23943

Use append() instead.

Upvotes: 4

p.campbell
p.campbell

Reputation: 100567

Do you mean you want to Append?

$("#wallCommentResponse45").append("<b>foo</b>");

If that's not what you were after, perhaps edit your question to include an expected output.

Upvotes: 3

Related Questions