Bootstrap Datepicker - How To Send Value To URL?
I must admit I'm hopeless on Javascript, PHP is more in my comfort zone. I'm trying to use Bootstrap Datepicker for a booking system. I'm trying to find a way that when you click o
Solution 1:
You should just have it in a form with method set to GET, and then submit the form on date change:
<form action="test.php" method="GET">
<input id="date" name="date">
</form>
<script>
$('#date').datepicker().on('changeDate', function() {
$(this).parent('form').submit();
});
</script>
Post a Comment for "Bootstrap Datepicker - How To Send Value To URL?"