Answers for "jquery wrap inner text"

0

jquery wrap inner text

$("button").click(function(){
  $("p").wrapInner("<b></b>");
});

/*
Before:
<p>Hello World!</p>

After:
<p><b>Hello World!</b></p>
*/
Posted by: Guest on January-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language