From: Anthony Talarico Date: Mon, 2 Nov 2015 21:35:12 +0000 (-0500) Subject: Changing text values of date input if date ranges are incorrect X-Git-Tag: v1.0.0^2~35 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=14a82cf20d962b25667b9402b5112e99596e384f;p=WP-Themes%2Fbpla.git Changing text values of date input if date ranges are incorrect --- diff --git a/js/app.js b/js/app.js index 065c7ae..c3d1e8b 100644 --- a/js/app.js +++ b/js/app.js @@ -84,7 +84,8 @@ $(document).ready(function () { } y = today.getFullYear(); requiredDate = y + '-' + m + '-' + d; - alert(requiredDate); + $("#dateOff1").val(""); + $("#dateOff1").val(requiredDate); }); $("#date1").datepicker({ diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 5763f07..b514f78 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -75,7 +75,8 @@ $(document).ready(function () { } y = today.getFullYear(); requiredDate = y + '-' + m + '-' + d; - alert(requiredDate); + $("#dateOff1").val(""); + $("#dateOff1").val(requiredDate); }); $("#date1").datepicker({