jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML wrapInner() Method Reference


  All jQuery with HTML Method References


Uses

jQuery wrapInner() method around the content of each HTML selected element.


Syntax

$(selector).wrapInner(wrapelement)

jQuery wrapInner() method supported following parameters.

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

jQuery wrapInner() Method Example

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

  All jQuery with HTML Method References