verifies if the datapicker container has an input element, otherwise will fall back to the datepicker element itself