Javascript to show value of input

Job ID: 34950235

Budget: $10 – $65 USD

I am working on a project where there is 2 radio buttons. When you select the second radio button, a calendar pops up for the user to select a date and i need this date to be populated into another div.

I have got some of the code working and the date does show but it needs tidying up as the date only shows on the second click. Also the text needs to hide when the first radio button is selected.

Site is using Hybris, however this is purely a small front end task. Code is on my local so any changes will need to be made via remote desktop using TeamViewer or similar.
Related categories: JavaScript CSS HTML5 jQuery / Prototype