jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML replaceAll() Method Reference


  All jQuery with HTML Method References


Uses

jQuery replaceAll() method Replace All selected elements with new contents.


Syntax

$(selector).replaceAll(classname)

jQuery replaceAll() method supported following parameters.

ParameterDescription
selectorselector is Required parameter. content define replace all on selected elements.

jQuery replaceAll() Method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
	$("<p>Web Development Tutorial</p>").replaceAll("p");
  });
});
</script>
Online Try This Code Your Self....   »

  All jQuery with HTML Method References