remove html tag
Posted: Mon Mar 14, 2011 2:14 pm
How can I remove the following tag with jquery?
<p align="center">Click here <a href="http://www.domain.com/" target="_blank">My domain</a></p>
Tried
jQuery('<p align="center">Click here <a href="http://www.domain.com/" target="_blank">My domain</a></p>').replaceWith('');
but it does not work
<p align="center">Click here <a href="http://www.domain.com/" target="_blank">My domain</a></p>
Tried
jQuery('<p align="center">Click here <a href="http://www.domain.com/" target="_blank">My domain</a></p>').replaceWith('');
but it does not work