1.4.1 change from 1.3.2 .add()
"As of jQuery 1.4 the results from .add() will always be returned in document order (rather than a simple concatenation)."
I don't know why but this stopped working:
var
popup = jQuery(
'<div id="HowToStartPopup"></div>'
);
var
popupContent = jQuery(
'<div id="HowToStartPopupContent"></div>'
);
var
popupCloseBtn = jQuery(
'<a href="#" id="HowToStartPopupCloseBtn" title="Close Popup">[x]</a>'
);
popupContent.add(popupCloseBtn).appendTo(popup);
in 1.3.2 popupContent and popupCloseBtn are both children of popup
in 1.4.1 popupContent is the only child of popup