I looked for answers, but I am a newbie to PhP/JQuery so the answers I found confused me further. 

I have a wordpress website that contains a form with a date selector field I am trying to determine when the user selects a new date and save that date to a variable to be used somwhere else

On change doesn't work cause of the lack of focus etc...

I tried select, and that didn't do anything

In the process of trying to figur eout what I am doing wrong, I simplified the code where once it is selected it gives me a message box! the code is below:
Any help is greatly appreciated!

```
$JScript ="<script>
jQuery('#wdform_2_element13').on('select',function() 
        {
            alert('Here');

        }
</script>"

```