Replacing and url help needed
Hi
I need help with the below. I'm trying to link to a dynamic url with the below, the jquery is not accepting the '?' and I need to replace the year, month and date so that the outcome is: website/index.php?id=2015-01-01
onSelectDate: function(date, month, year){
window.location.replace("index.php?id="+[year, month, date].join('-') + '.php');