WrapAll
Wrap an HTML structure around all elements in the set of matched elements.
<div>
<button id="btnWrapAll">wrap</button>
<div id="blockToWrapAll">
<div>
<p>Hello</p>
<p>cruel</p>
<p>World</p>
</div>
</div>
<?php
echo
YsJQuery::newInstance()
->onClick()
->in('#btnWrapAll')
->execute(
YsJQuery::wrapAll('<div></div>')->in('#blockToWrapAll p')
)
?>
</div>
Hello
cruel
World

Support requests, bug reports, and off-topic comments will be deleted without warning.