jQuery wrapInner wraps specified HTML element(s) around the content of each element in a set of matched elements.
It may be nested structure but it should contain only one inmost element.
– HTML elements
– jQuery objects
– DOM elements
Suppose you have following HTML:
<div class="main"> <div class="sub">John Doe</div> <div class="sub">Jane Doe</div> </div>
Now you can insert an HTML <span> structure around the content of each sub <div> elements like so:
$( ".sub" ).wrapInner( "<span></span>");
Final Output:
<div class="main"> <div class="sub"><span>John Doe</span></div> <div class="sub"><span>Jane Doe</span></div> </div>
For more information click here.
Battery coating is the process of applying uniform layers of active materials—such as cathode and…
Let’s face it. Tech buzzwords get thrown around a lot—especially when it comes to how…
In today’s digital world, the boundaries between technology, finance, and innovation are rapidly disappearing. Businesses…
Backyard gatherings like BBQs, family reunions, and garden parties are an exciting way to enjoy…
Marketers are always on the lookout for more effective ways to reach their target audiences.…
Does your phone control your mind more than you control your phone? Modern life exploits…