A B O U T

So, is it just another jQuery plugin? NO


Data validation is a must-do in a form. Usually, default validation check does the job. But some time you may need to write your own. And both of them can be exploited.

This plugin has specialty. It automatically corrects any user input, performing validation routines behind the scene. Which means you just need to sit back and relax. All that fuzzy business have been taken care for you.

Features

  • Supports text input auto-correction
  • Supports email address auto-correction
  • Supports phone number auto-correction
  • Supports URL input auto-correction
  • SQL Injection attack proof

Live Demo

First, include jQuery in your project.

<script src = 'https://ajax.googleapis.com/ajax/libs/jQuery/jQuery-2.0.3.min.js'></script>

Second, include iForm plugin after that.

<script src = 'src/jQuery.iForm.js'></script>

Then, add these 2 code blocks anywhere in your file.

<div class = 'msg' id = 'msg-success' style = 'box-shadow:0em 0em 0.5em #bbb; display:none;'>
              <p>You've typed <span class = 'userval'></span>, which is wrong. We've rectified it for you.</p>
              <input type = 'button' value = 'Close' class = 'do_close' />
              </div>

<div class = 'msg' id = 'msg-error' style = 'box-shadow:0em 0em 0.5em #bbb; display:none;'>
              <p>You've typed <span class = 'userval'></span>. Please enter valid Email client name.</p>
              <input type = 'button' value = 'Close' class = 'do_close' />
              </div>

Finally, initialize the plugin, like this.

$("input[type = 'text']").iForm({
              mode: friendly or strict,
              appliesTo: text or email or url or tel or number
              });

Support & Download

Made with . By Somnath .