Eonasdan/bootstrap-datetimepicker — pull request #296 by dave-newson (2014-04-23 07:34:41+00:00)
Title: Enable datepicker to appendTo another element in the page

Due to a design decision, we needed to use absolute/relative positioning from an element to position the DatePicker, and have it appended to one of the elements hear the input it was to be used on.

This PR enables you to specify "appendTo: $jqueryObject" in the options list, and have the DatePicker added within the page, appended to that element.

The check on place() is simply to not update/apply any inline styles to the element if it's NOT attached directly to "body", which remains the default element if you specify no appendTo option.