css - insert content INSIDE the <p> tag with jquery -


i want add content <p> after ipsum before <a>

<p id="service">service: lorem ipsum <a href="#">change</a></p> 

i want like

<p id="service">service: lorem ipsum more content <a href="#">change</a></p> 

please let me know how do.

$('#service>a').before(' more content ') 

http://jsfiddle.net/knbds/


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -