jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML insertAfter() Method Reference


  All jQuery with HTML Method References


Uses

jQuery insertAfter() method Inserts HTML elements after selected elements.


Syntax

$(content).insertAfter(selector)

jQuery insertAfter() method supported following parameters.

ParameterDescription
selectorselector is Required parameter. Insert after in selected element.

jQuery insertAfter() Method Example

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

  All jQuery with HTML Method References