Click here to Skip to main content
15,895,746 members
Articles / Programming Languages / Javascript

Extending the jQuery validation plug-in

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
18 Mar 2013CPOL4 min read 21.2K   218   4  
Making modifications to the standard jQuery validation behaviour.
/*general display settings*/
* { font-family: Verdana; font-size: 96%; }
form div { padding: 0.1em; }
label { float: left; }
em { float: right; font-weight: bold; padding-right: 1em; vertical-align: top; }

.text { width: 20em; float: left; }

#submit { float: right; margin-right: 1em; }

/*for the validation summary*/
#summary { display: none; }
#summary label { float: none; }

/*for showing the errors*/
.error { color: red; }

input.error, textarea.error, select.error { border: 1px solid red; } 
select.error { color: black; }

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions