Recent news

Tuesday, 3 May 2016

jQuery Client Side Form Validation Plugin




Validity is a jQuery validation plugin which perform client side validation. It is easy to use jQuery plugin and light weight plugin. This plugin you can use in asp.net, php,mvc,java, html etc.


How To Use

1. Add the below library reference

<link rel="Stylesheet" href="jquery.validity.css" />
<script src="jquery-1.6.2.min.js"></script>
<script src="jquery.validity.min.js"></script>


2. Now add the below html tag.

<form method="get" action="">
    <input type="text" id="quantity" />
    <br />
    <input type="submit" />
</form>


3. Add the below code to validate form
  
 $(function () {
        $("form").validity(function () {
            $("#quantity")
                .require()
                .match("number");
        });
    });




Pranav Singh Author: Pranav Singh

Hello, I am Author of this blog. The main purpose of this blog is to provide all the jQuery plugins which is helpful in designing and developing a web application in a single location from the web.

Previous
Next Post »

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles