Created
June 18, 2015 11:01
-
-
Save gladiatorAsh/520fe0e081976a83f1a8 to your computer and use it in GitHub Desktop.
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
| function CheckDate($element) { | |
| if ($element.is('input:text')) { | |
| if ($element.val().trim() == "") { | |
| return; | |
| } | |
| if ($.inArray($element[0], objValidationFailed) === -1) { | |
| if (!$.validate($element.val().trim(), "isDate")) { | |
| validated = false; | |
| objValidationFailed.push($element[0]); | |
| $element.addClass('error'); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment