Here is an example on how to attach a popup calendar to a text input. Just place your cursor in the text box & the calendar will appear.