Multiple Date Picker, getting dates

Multiple Date Picker, getting dates

I am using this example to select multiple dates


So far so good but i need to get the values selected on the calendar. I added a label with the below code

  1.     <script language="javascript" type="text/javascript">
  2.         document.getElementById('DatesLabel').value = $('#mdp-demo').multiDatesPicker('getDates');
  3.     </script>

but each time i click a date on control the label shows as empty. My guess is to target the click event of the calendar or since it holds the value in an array i'm not sure how i can access the array holding all the values after the user has clicked a few dates?