Use empty() rather than .children().detach(), since it doesn't filter out text nodes.
Use empty() rather than .children().detach(), since it doesn't filter out text nodes.

qTip2/qTip2,landsurveyorsunited/qTip2,textioHQ/qTip2,itnovator/qTip2,textioHQ/qTip2