cache/ templates_c/
<script src="js/languages/jquery.validationEngine-zh_TW.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">
<form id="myform">
<input type="text" name="title" id="title" class="validate[required, minSize[4], maxSize[50]]">
equals[field.id]
:等於某欄位min[float]
:最小值、max[float]
:最大值minSize[integer]
:最小字數、maxSize[integer]
:最大字數minCheckbox[integer]
:至少選幾個、maxCheckbox[integer]
:最多選幾個custom[格式]
:驗證各種輸入內容,格式可以是:
phone
(電話)url
(網址)email
(Email)date
(日期 YYYY-MM-DD)number
(數字,如:-143.22 or .77 but also +234,23)integer
(整數,如:-635 +2201 738)ipv4
(IP,如:127.0.0.1)onlyNumber
(僅數字)onlyNumberSp
(僅數字及空白)onlyLetter
(僅字元)onlyLetterSp
(僅字元及空白)onlyLetterNumber
:僅字元和數字,無空白<script> $(document).ready(function () { $('#myform').validationEngine(); }); </script>