JavaScript DHTML/jQuery/replaceAll
replaceAll(selector): complement to replaceWith()
<source lang="html4strict">
<html>
<head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("Paragraph. ").replaceAll("span"); }); </script>
</head>
<body>
<body>
Span Text
</body>
</html>
</source>
Use tag to replace all
<source lang="html4strict">
<html>
<head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("Paragraph. ").replaceAll("p"); }); </script> <style> div { border:2px green solid;} </style> </head> <body> <body>
Hello
</body>
</html>
</source>