Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged validation



« Prev 1 2
  1. FAV

    Credit Card Parser & Validator

    With publicly available information and a little math it is possible to not only validate a given card number, but to determine the financial institution that issued the card, the type of industry the issuer belongs to, the actual account number and...
    JavaScript 10 views posted 5 years ago by geneticcode
  2. FAV

    Javascript - Validate number of days in a given month

    How would you validate the number of days in a given month?
    JavaScript 7 views posted 6 years ago by satie83
  3. FAV

    email validation

    Use a regex to check the email address input
    JavaScript saved by 16 people 79 views posted 6 years ago by dreamstarter
  4. FAV

    Email Validation in JavaScript

    One of the important things about user input is to verify that the user has supplied the email that you have requested. The function below allows you to verify email address with easy.
    JavaScript saved by 3 people 8 views posted 6 years ago by apphp-snippets
  5. FAV

    Allow only numberic key presses.

    The following code allows only numeric characters to be entered.
    JavaScript saved by 1 person 11 views posted 7 years ago by jprochazka
  6. FAV

    Validar solo el ingreso de String con Javascript

    Valida por medio del metodo onkeypress de un campo input, que solo se ingresen string /[a-zA-Z]/
    JavaScript 2 views posted 7 years ago by serialk89
  7. FAV

    Flexible JavaScript Date Validation w/ Regex

    Find the date with or without a year and with double or single digit month or day. Easily extendable to other date delimiters and formats.
    JavaScript 5 views posted 8 years ago by pumpkinthehead
  8. FAV

    isEmail Function

    Check if user has intruded a real email address. Return true (real email) or false (fake email). Arguments: Element from a form. From book Dom Scripting by Jeremy Keith
    JavaScript 7 views posted 8 years ago by alberomo
  9. FAV

    isFilled (form element) Function

    Arguments: Element from a form. Take that element and checks if is filled. If not, returns false. If is filled, returns true. From book Dom Scripting by Jeremy Keith
    JavaScript 2 views posted 8 years ago by alberomo
  10. FAV

    Javascript Special Characters validation

    JavaScript 2 views posted 8 years ago by erraja_07
  11. FAV

    Validate Local Page Markup in JavaScript

    JavaScript 1 views posted 8 years ago by mecha
  12. FAV

    Fill Any Empty HTML Field on Exit with a user supplied value

    Often you supply a default value in a text field which you want to automatically clear when the user enters the field. This will do that operation and fill the field with a default value.
    JavaScript 2 views posted 8 years ago by jimbo
  13. FAV

    Force an input to be numeric with jQuery

    This tiny jQuery plug in forces a user to enter only numeric values on an input field by silently removing non-numeric values as they're entered. (Caution: Never rely on client-side validation; use server-side validation as well)
    JavaScript saved by 6 people 4 views posted 9 years ago by BrunoDeBarros
  14. FAV

    Prohibir ciertos caracteres en un input

    No permite ingresar la ñ o Ñ
    JavaScript 3 views posted 9 years ago by elquemero
  15. FAV

    No permitir ingresar ciertos caracteres en un input

    JavaScript 8 views posted 9 years ago by elquemero
  16. FAV

    Validate an email address. (advanced)

    The following JavaScript will validate an email address using strict rules when a form is submitted.
    JavaScript 5 views posted 9 years ago by jprochazka
  17. FAV

    Validte a telephone number.

    The following JavaScript will validate if a 10 digit phone number was supplied once the form is submitted.
    JavaScript 2 views posted 9 years ago by jprochazka
  18. FAV

    Drop down validation

    requires that a pulldown \\\"program1\\\" in form \\\"freshmen\\\" be set to anything but the first value in the option list. \\r\\n\\r\\nrequires jquery validate: http://docs.jquery.com/Plugins/Validation
    JavaScript saved by 3 people 4 views posted 9 years ago by dan_hoerr
  19. FAV

    JavaScript email validation

    JavaScript saved by 6 people 6 views posted 9 years ago by daipratt
  20. FAV

    KickApps - Change form validation to use JQuery. Fixes issues with IE

    Fixes an issue if you have another login form on the page with a password field.
    JavaScript 2 views posted 9 years ago by linusx
  21. FAV

    Avoid HTML validators in your javascript inline code with CDATA

    Use /* <![CDATA[ */ to make validators ignore the javascript code.
    JavaScript 6 views posted 9 years ago by jaff
  22. FAV

    Javascript OOP Form Validator

    Just thought id put up a version of my form validation class. It will be expanded in the future but I thought Id let everyone have a look. # Update 0.1 # * Create Error List Function * Validate Email Address Function * Valida...
    JavaScript 3 views posted 10 years ago by alvincrespo
  23. FAV

    Form validator - jQuery plugin

    Amazing form validator using the jQuery framework!
    JavaScript saved by 4 people 2 views posted 10 years ago by jaff
  24. FAV

    Javascript email validation

    <form> <input>
    JavaScript 7 views posted 10 years ago by hotdiggity
  25. FAV

    date validation

    JavaScript saved by 1 person 0 views posted 10 years ago by mcarneiro
  26. FAV

    Javascript NIF/CIF/NIE

    JavaScript 0 views posted 10 years ago by LaRanaBudWeisEr
  27. FAV

    JavaScript Form Field Validation

    JavaScritp Form Validation Framework to validate form fields on the fly, no programming knowledge required.
    JavaScript 3 views posted 10 years ago by clickfind
  28. FAV

    Validate Decimals with Javascript

    Validating a decimal such as a measurement of time or currency (10.5 or 0.4). This function will return the correct number. If you feed in "10.5foo" the function will spit back 10.5. If you feed in "bar" the function will return nothing.
    JavaScript 2 views posted 10 years ago by blackf0rk
  29. FAV

    Cool Javascript Validation

    A very easy to use script for validating your forms.
    JavaScript saved by 4 people 1 views posted 11 years ago by sarfraznawaz2005
  30. FAV

    Basic Signup Form Validation

    I came across this little snippet... and thought it was rather nice.
    JavaScript 3 views posted 11 years ago by gembry
« Prev 1 2