Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
addon filters for jQuery.validate
JavaScript
branch: master

image url

latest commit a40a43f62c
John Antoni Griffiths authored
Failed to load latest commit information.
jquery.validate.filters.js img url filter
jquery.validate.filters.uk.js uk
jquery.validate.max.js ex
readme.markdown image url

readme.markdown

add-on filters for jquery.validate

validate.accept:

regex form filter

options

Only numbers:

rules: {
  field: { accept: "[0-9]+" }
}


Only letters:

rules: {
  field: { accept: "[a-zA-Z]+" }
}

others

  • phoneUK - validate UK phone number
  • mobileUK - validate UK mobile phone number
  • lettersOnly - validate only letter input
  • numbersOnly - validate only numeric input
  • postalCode - validate standard postal code format
  • imgUrl - validate image url

notes

look at jQuery.alphanumeric to prevent number / letter / pattern input -> here

Something went wrong with that request. Please try again.