Last active
February 11, 2020 11:24
-
-
Save ansargondal/d31f5a6bfa58ea2203e05a5164563b0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (permitteeEditModal.find(".datepicker").length > 0) { | |
permitteeEditModal.find(".datepicker").datepicker({}).position({ | |
my: "left top", | |
at: "left bottom", | |
of: permitteeEditModal.find(".datepicker"), | |
}).hide(); | |
permitteeEditModal.find(".datepicker").show(); | |
permitteeEditModal.find('.datepicker').on('change', function () { | |
if ($(this).val().length) { | |
var ymd_date_input = $(this).closest('.form-group').find('.ymd-date-input'); | |
//converts and gets mysql formatted date | |
var ymd_formatted_date = toSqlDate($(this).val()); | |
ymd_date_input.val(ymd_formatted_date); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment