jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML wrapAll() Method Reference


  All jQuery with HTML Method References


Uses

jQuery wrapAll() method around the all HTML selected element.


Syntax

$(selector).wrapAll(wrapelement)

jQuery wrapAll() method supported following parameters.

ParameterDescription
wrapelementwrapelelement is Required parameter. html element like <div></div> etc.

jQuery wrapAll() Method Example

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

  All jQuery with HTML Method References