replaceAll(selector): complement to replaceWith() : replaceAll « jQuery « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){

          $("<b>Paragraph. </b>").replaceAll("span");
                
         
        });
    </script>


    
  </head>
  <body>
    <body>
          <span>Span Text</span>
                 
    </body>
</html>








30.88.replaceAll
30.88.1.Use tag to replace all
30.88.2.replaceAll(selector): complement to replaceWith()
30.88.3.Replace a button with text
30.88.4.Replace all with