Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.validator.addMethod("domain", function(value, element, params) {
- alert(element);
- return this.optional(element) || /^http:\/\/mycorporatedomain.com/.test(value);
- }, "Please specify the correct domain for your documents");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement