-
Book Overview & Buying
-
Table Of Contents
jQuery 1.3 with PHP
By :
There are a number of validation plugins available online. The one we will use in this chapter is by Jörn Zaefferer, and is one of the longest-lived of those plugins.
If you want to do anything that someone else might already have done in jQuery, there is probably a plugin already existing for you to download.
Before you reinvent any wheels, always check http://plugins.jquery.com/ to see if there is something there that will do what you want.
Download the zipped package from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ and extract it into the examples root directory. The extracted package will make a directory called jquery-validation, containing the plugin and some extra files in case you need further capabilities.
Create a new HTML document, call it form.html, and insert the following HTML into the body section. It will create a form for us to work with.
<form id="contact_form">
<table>
<tr><...
Change the font size
Change margin width
Change background colour