I have an onsubmit process that looks like
<form onsubmit="return confirm('Are you sure you want to change the dates on this reservation to those new dates?');"
What I'd like to do is change that string to incorporate some text from some form fields in the document.
I tried
onsubmit="return confirm('Are you sure you want to change the dates on this reservation to '+document.getElementByID('datepicker3').value+' to '+document.getElementById('datepicker4').value');"
but alas - it didn't work nor have any of the other variations kinda similar to that.
What am I missing?
Thanks in advance!