Validate5

Form validation made simple. Same HTML5 way, but with support for older browsers.



How to use

<form action="#" method="get" accept-charset="UTF-8" style="margin-left:6px;">
    <div class="container">
        <input type="text" name="name" placeholder="Your Name" autofocus required/><br/>
    </div>
    <div class="container">
        <input type="email" name="email" placeholder="Your Email" required/><br/>
    </div>
    <div class="container">
        <input type="text" name="text" title="Invalid ZIP code." pattern="\d{5}-?(\d{4})?" placeholder="ZIP (5 numbers)" required/><br/>
    </div>
    <div class="container">
        <input type="submit" value="Submit" />
    </div>
</form>
<script/>
    validate5("form");
</script>
Created with JS & <3 by Ionică Bizău