Clone A
Tag And Wrap It Around Existing Content?So There is an existing form tag as such: 
Solution 2:
This is relatively easy to achieve, really all you have to do, is use .clone(), .append() and .empty():
$('#vCSS_mainform').clone().appendTo($('body')).empty();
Bear in mind, of course, that duplicate ids are invalid HTML.
Edited to complete the answer, to wrap the
#accBox you could use:
$('#accBox').wrap($('#vCSS_mainform').clone().appendTo($('body')).empty());
References:
Solution 3:
$("#accBox").wrap($('#vCSS_mainform').clone().empty());
Solution 4:
Try someting like this.
functionstrip(htmlfullstring)
{
   var tmp = document.createElement("formid");
   tmp.innerHTML = html;
   return<form> + tmp.textContent||tmp.innerText+</form>;
}
if i understood your requirement.
Post a Comment for "Clone A
Tag And Wrap It Around Existing Content?"