JSValidate is a form validator that utilizes aspects of prototype and scriptaculous to bring you a simple to execute, non-intrusive javascript form validator. With minimal setup, your forms can be processing clean data in no time at all.

Just you have to attach a class to any of your form elements, which you want to validate. Here’s a list of the default classes you can use.
jsrequired – Field must have some sort of value.
jsvalidate_number – Any integer; accepts decimal and negative
jsvalidate_digits – Only Numbers
jsvalidate_alpha – Only letters
jsvalidate_alphanum – Only letters, numbers, and underscores.
jsvalidate_email – Any valid email address.
jsvalidate_uscanzip – US or Canada Zip code; Accepts optional US zip + 4
jsvalidate_usstate – Any 2 letter uppercase state of the United States.
jsvalidate_usphone – US Phone Number, accepts most common formats.
jsvalidate_creditcard – Validates VISA, MasterCard, American Express;
jsvalidate_ssn – Social Security Number in the format: XXXXXXXXX, XXX XX XXXX, or XXX-XX-XXXXX
select-notfirst – This class can be applied to select boxes (drop-downs). It prohibits the user from selecting the first option from the list.
You can define in which tag or class the errors should be displayed.
Supports cross browser compatibility.
For working demo click here
Share or Bookmark This Post With :
Google FriendConnect – instantly awakens and strengthens the community that visits your site by enriching it with social features. Anyone can join your site and discover other members by using information from a variety of services, including Google, Yahoo!, Twitter, AOL, orkut, and Plaxo, strengthening your community as visitors become members. Choose from a range of gadgets to get users commenting, rating, sharing, etc.
The Wordpress Google Friend Connect plugin allows you to let your users to authenticate using their external accounts and comment your posts. It also provides a replacement for the existing WordPress comment functionality by using Google Friend Connect comments gadget.
When you add a new post, someone posts a comment or someone recommends one of your posts using the recommendation button, those activities are posted to the Google Friend Connect activity streams.
Share or Bookmark This Post With :
A simple newsletter sign-up form using PHP, Ajax and the Prototype JavaScript framework.
When visitor enters his name and email and clicks on “Sign up” a check is being done if the email exists already and if not it is added.
This is happening without refreshing the current page (Ajax).
All code is well commented, written as simply as possible so users can easily adapt it.
For installation/configuration/licensing refer to the readMe.txt inside the package.
Works with all modern browsers.
Simple html form
<div id="okmessage" style="display:none;align:center;color:green;">Thank you</div>
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td><font size=2 face=Arial>Name:</font></td>
<td><input type="text" name="name" id="name" value=""></td>
</tr>
<tr>
<td><font size=2 face=Arial>Email:</font></td>
<td><input type="text" id="email" name="email" value=""></td>
</tr>
<tr>
<td colspan=2> </td>
</tr>
<tr>
<td colspan="2" align=right>
<input onclick="signup();" type="submit" id="submit" value="Sign up">
<div id="loading" style="display:none;align:center;"><img src="wait.gif"></div>
</td>
</tr>
</table>
Share or Bookmark This Post With :
- dotProject – the Open Source Project Managem...
- The jQuery Form Plugin
- DocVerse has officially been acquired by Google
- HDGraph – a free tool for Windows to draw mu...
- RandomClass jQuery Plugin
- Paparazzi – a small utility for Mac OS X to ...
- Blocking SPAM using Postfix header_checks and Spam...
- Facebook, Paypal team up for virtual goods payment
- Opera Mini – the next generation mobile brow...
- XML/SWF Charts – powerful tool to create att...
- Send emails using PHPMailer an...
- Firefox Addons Essential for S...
- Free SEO Tools From SEOMoz.org...
- URL Rewriting for PHP Web Appl...
- Multiple Instances of Tomcat w...
- Apache 2.x + Tomcat 4.x + Load...
- Pagination in JSP/Java
- PHP – Mysql Open Source ...
- java.lang.OutOfMemoryError: Ja...
- HOW TO Subversion+Apache on Fe...





