.replaceWith() | jquery replace div content
Description:Replaceeachelementinthesetofmatchedelementswiththeprovidednewcontentandreturnthesetofelementsthatwasremoved.The.replaceWith()methodremovescontentfromtheDOMandinsertsnewcontentinitsplacewithasinglecall.ConsiderthisDOMstructure:12345