diff --git a/src/jquery.maskedinput.js b/src/jquery.maskedinput.js index af67604..7f4d4eb 100644 --- a/src/jquery.maskedinput.js +++ b/src/jquery.maskedinput.js @@ -248,7 +248,11 @@ .bind("keydown.mask", keydownEvent) .bind("keypress.mask", keypressEvent) .bind(pasteEventName, function() { - setTimeout(function() { input.caret(checkVal(true)); }, 0); + setTimeout(function() { + input.caret(checkVal(true)); + if (settings.completed && checkVal(true) == input.val().length) + settings.completed.call(input); + }, 0); }); checkVal(); //Perform initial check for existing values