tags:

views:

34

answers:

2

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?

+3  A: 

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.

p.campbell
@downvoter: care to explain how this answer doesn't help the asker? Sample code and all? These drive-by downvotes are not helpful to the community of people volunteering their time. This answer arguably has more value than other answers.
p.campbell
+1 to make it right. Maybe troll doesn't like bold ...
FreekOne
@FreekOne: hey, thanks! Justice on SO! ;)
p.campbell
@p.campbell: No problem, buddy :) Trolls, begone !
FreekOne
+4  A: 

Use append() instead.

Ken Redler