Created
September 14, 2016 08:53
-
-
Save xto3na/457e5b846de53f591b7ade2ae686e817 to your computer and use it in GitHub Desktop.
Date input format
This file contains hidden or 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
$(".date-of-birth").on("blur", function () { | |
var str = $(".date-of-birth").val(); | |
$(".date-of-birth").val(str.replace(/[^\/0-9]/g,'')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment