Introduction of related documents:
<script src= "Https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js" type= "text/javascript" ></script><script src= "Js/jquery.validationengine-en.js" type= "Text/javascript" charset= "Utf-8" > </script><script src= "Js/jquery.validationengine.js" type= "Text/javascript" charset= "Utf-8" ></ Script><link rel= "stylesheet" href= "Css/validationengine.jquery.css" type= "Text/css"/>
Usage examples:
Mailbox Verification:<inputvalue= "[email protected]"class= "Validate[required,custom[email]]"type= "text"name= "Email"ID= "Email" />Date Validation:<inputvalue= "2010-12-01"class= "Validate[required,custom[date]]"type= "text"name= "Date"ID= "Date" />Digital Verification:<inputvalue= "Too many spaces obviously"class= "Validate[required,custom[onlyletternumber]]"type= "text"name= "Special"ID= "Special" />URL Validation:<inputvalue= "/http"class= "Validate[required,custom[url]] text-input"type= "text"name= "url"ID= "url"data-prompt-position= "TopLeft" />Required Validation:<inputvalue=""class= "validate[required] text-input"type= "text"name= "req"ID= "req"data-prompt-position= "Bottomleft" />Digital Letter Verification:<inputvalue= "Too many spaces obviously"class= "Validate[required,custom[onlyletternumber]]"type= "text"name= "Special"ID= "Special"data-prompt-position= "BottomRight" />Custom Validation:<inputvalue=""class= "Validate[required,funccall[checkhello]]"type= "text"ID= "LastName"name= "LastName" />function Checkhello () {alert (' Hello world! '); }
Ajax Validation:<inputvalue=""class= "Validate[required,custom[onlyletternumber],maxsize[20],ajax[ajaxusercall]] text-input"type= "text"name= "User"ID= "User" />"Ajaxusercall": {"url": "Ajaxvalidatefielduser", "Extradata": "Name=eric", "extradatadynamic": [' #user_id ', ' #user_email '], "alerttext": "* This user was already taken", "Alerttextok": "All good!", "alerttextload": "* Vali Dating, please Wait "}, multi-select authentication:<inputclass= "validate[mincheckbox[2]]"type= "checkbox"name= "Group1"ID= "Maxcheck1"value= "5"/><inputclass= "validate[mincheckbox[2]]"type= "checkbox"name= "Group1"ID= "Maxcheck2"value= "3"/><inputclass= "validate[mincheckbox[2]]"type= "checkbox"name= "Group1"ID= "Maxcheck3"value= "9"/>
Jquery.validationengine Front-end verification