<HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head> <Scriptsrc= "Easyui1.2.4/jquery-1.6.min.js"type= "Text/javascript"></Script> <Scriptsrc= "Easyui1.2.4/jquery.easyui.min.js"type= "Text/javascript"></Script> <!--Custom Validation - <Scriptsrc= "Easyui1.2.4/validator.js"type= "Text/javascript"></Script> <Linkhref= "Easyui1.2.4/themes/default/easyui.css"rel= "stylesheet"type= "Text/css" /> <Script> $(function () { //setting text requires validation $('Input[type=text]'). Validatebox (); }) </Script></Head><Body>Mailbox Verification:<inputtype= "text"Validtype= "Email"Required= "true"Missingmessage= "cannot be empty"Invalidmessage= "Mailbox format is incorrect" /><BR/>URL Verification:<inputtype= "text"Validtype= "url"Invalidmessage= "URL format is incorrect [http://www.example.com]" /><BR/>Length Verification:<inputtype= "text"Validtype= "length[8,20]"Invalidmessage= "Effective length 8-20" /><BR/>Mobile Verification:<inputtype= "text"Validtype= "mobile" /><BR/>Postcode Verification:<inputtype= "text"Validtype= "ZipCode" /><BR/>Account Verification:<inputtype= "text"Validtype= "account[8,20]" /><BR/>Man Verification:<inputtype= "text"Validtype= "CHS" /><BR/>Remote Authentication:<inputtype= "text"Validtype= "remote[' checkname.aspx ', ' name ']"Invalidmessage= "User name already exists"/></Body></HTML>
Easyui Validatebox Validation Collection