I am looking to enclose all the elements below "name portlet-title" without including other elements within the "div class name portlet-title". I have attempted the following methods:
1)
$("div.item").wrapAll('<div class="portlet-body"></div>');
This is affecting all items on the page.
2)
$("div.list").wrapInner('<div class="portlet-body"></div>');
This includes the "div class name portlet-title."
I'm not very familiar with jQuery, so any assistance would be appreciated.