Welcome To Snipplr


Everyone's Recent Snippets Tagged validation



https://www.chrisjmendez.com/2008/09/21/jquery-ensure-that-at-least-one-checkbox-is-selected/
4 1787 posted 17 years ago by chrisaiv
Para validar si son dígitos, letras, números enteros o decimales (se puede seleccionar el separador de decimales). La función esDigito() y esLetra() está basada en otros códigos de Snipplr
1 1378 posted 17 years ago by sulfurito
Uses a regular expression to validate a string as a validly formatted email address.
1 1815 posted 17 years ago by Anthony
Test harness for an implementation of the Luhn algorithm that checks the validity of a credit card number.
0 2119 posted 17 years ago by Uzbekjon
A simple method of validating an IP address using PHP and regular expressions
2 4695 posted 17 years ago by aristoworks
This is a simple method of validating a 9-digit zip code using PHP and regular expressions
3 3891 posted 17 years ago by aristoworks
A simple method of validating an email address using PHP and regular expressions
4 2866 posted 17 years ago by aristoworks
A simple method of validating a telephone number using regular expressions and PHP
3 3051 posted 17 years ago by aristoworks
(Supported by JavaScript, maybe other languages)
3 7303 posted 17 years ago by wizard04
YouTube offers a method for users and developers to embed video on their web pages. Unfortunately the code that they use doesn't validate. Use this function to make YouTube's embed code validate.
2 2241 posted 17 years ago by neal_grosskopf
CSS Diagnostics allows web designers and developers to highlight invalid HTML using CSS selectors. Say goodbye to the font tag by highlighting it in a large obnoxious border. It also has the ability to highlight 404 pages, old CSS classes and old Jav...
7 3485 posted 17 years ago by neal_grosskopf
If you've ever used a strict doctype and used the target attribute on links you'll notice that it doesn't validate. Here is an easy solution.
4 3330 posted 18 years ago by neal_grosskopf
2 1531 posted 18 years ago by ajbatac
3 1950 posted 18 years ago by iTony
Basically what this algorithm does is to replace the first letter of the serial number by a number (each letter represents where the banknote is originally from), then it calculates the sum of all digits. If the remaining of the division of that sum...
0 1407 posted 18 years ago by j_junyent
2 1695 posted 18 years ago by ajbatac
Download the Credit Card Library from Lucas Carlson user$ sudo gem install creditcard
6 3030 posted 18 years ago by chrisaiv
0 1607 posted 18 years ago by JuliaKM
Email validation routine Dave Child
8 2388 posted 18 years ago by IanLewis
1 1971 posted 18 years ago by eethann
great to validate and process a form in the same page
5 3096 posted 18 years ago by valcartei
model/form.py is a good place to put schemata in a pylons app: easy to build with inheritance and accessible to controllers via model.form.EmailForm, etc. See the link for further info on the _extra_fields options -- this one is intended for just two...
1 3133 posted 18 years ago by ches
From railscast #41
2 1935 posted 18 years ago by bordalix
a function to check the validity of the postcode according to UK rules
0 4586 posted 18 years ago by valcartei
This code will validate not only the four octets contain between 1 and 3 numbers each, but also that the number they contain is between 0 and 255. In all, there are 3 different regex's that I tried and all seem to work fine. The three regex's a...
0 3853 posted 19 years ago by numberwhun