.empty() | jquery out html
Thismethodremovesnotonlychild(andotherdescendant)elements,butalsoanytextwithinthesetofmatchedelements.Thisisbecause,accordingtotheDOMspecification,anystringoftextwithinanelementisconsideredachildnodeofthatelement.ConsiderthefollowingHTML:1234