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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -