Microsoft
Software
Hardware
Network
Question : Remove a tag but leave the text
This is my code:
<div id="test">
<p>My Text</p>
<p>My Text</p>
</div>
I need jQuery that will remove all the p tags from#test and just leave:
<div id="test">
My Text
My Text
</div>
Thanks in advance.
Answer : Remove a tag but leave the text
Sorry i didnt read the complete question:
Just one appointment : )
1: 2: 3:
$("p", "#test").each(function() { $(this).replaceWith( $(this).html()+"<br>" ); });
Random Solutions
Dreamweaver and jQuery
Does Barack Hussein Obama deserve 4 more years?
Extract icon from EXE/DLL
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
Require 2 CPUs on an Intel Server SC5520HC Motherboard?
[ODBC Microsoft Access Driver]Invalid descriptor index error
call .rdl with store procedure with parameter
Backup Return of investment
HP Designjet 1055cm and windows 7
workgroup computer connected to domain LAN cannot browse web but can resolve IPs