From: Anthony Talarico Date: Mon, 2 Nov 2015 19:00:12 +0000 (-0500) Subject: IOS NSString date format must be converted and validated. checking validation X-Git-Tag: v1.0.0^2~48 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=838b30d55911948bd3e1efb41b0c271b0f909f01;p=WP-Themes%2Fbpla.git IOS NSString date format must be converted and validated. checking validation --- diff --git a/js/app.js b/js/app.js index 8850275..a3f1ad7 100644 --- a/js/app.js +++ b/js/app.js @@ -76,9 +76,11 @@ $(document).ready(function () { m = today.getMonth() + 1; y = today.getFullYear(); requiredDate = y + '-' + m + '-' + d; - // $("#dateOff1").attr("min", requiredDate); - - // $("#date1").val(requiredDate); + + $("#dateOff1").change(function () { + currentDate = this.value; + alert(currentDate); + }); $("#date1").datepicker({ minDate: 2, onSelect: function (date) { diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index ec174be..23cdbf4 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -67,9 +67,11 @@ $(document).ready(function () { m = today.getMonth() + 1; y = today.getFullYear(); requiredDate = y + '-' + m + '-' + d; - // $("#dateOff1").attr("min", requiredDate); - - // $("#date1").val(requiredDate); + + $("#dateOff1").change(function () { + currentDate = this.value; + alert(currentDate); + }); $("#date1").datepicker({ minDate: 2, onSelect: function (date) {