Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create own rules jquery

jQuery.validator.addMethod("domain", function(value, element) {

  return this.optional(element) || /^http://mycorporatedomain.com/.test(value);

}, "Please specify the correct domain for your documents");

Source by jqueryvalidation.org #
 
PREVIOUS NEXT
Tagged: #create #rules #jquery
ADD COMMENT
Topic
Name
6+9 =