diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index a47ead6..cc7c422 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -1156,6 +1156,7 @@ if ($.type(options.mask) === 'string') { if (!isValidValue(options.mask, input.val())) { input.val(options.mask.replace(/[0-9]/g, '_')); + setCaretPos(input[0], 0); } input.on('keydown.xdsoft', function (event) {