<form onsubmit="return validateCallback(this)" class="pageForm" action="ajaxDone.html" method="post">
真實姓名:
<input type="text" class="required textInput" maxlength="20" size="30" name="name">(必填驗證)
電子郵箱:
<input type="text" alt="請輸入您的電子郵件" class="required email textInput" size="30" name="email" id="email_2871">(郵箱驗證)
電話:</label>
<input type="text" alt="請輸入您的電話" class="phone textInput" size="30" name="phone" id="phone_8171">
密碼:</label>
<input type="password" alt="字母、數字、下划線" class="required alphanumeric textInput" size="30" name="password">(必填,字母、數字、下划線驗證)
年齡:</label>
<input type="text" alt="" class="required textInput" size="30" name="age" max="100" min="5">(必填,最大值和最小值驗證)
<button type="submit">提交</button>
email: “請輸入正確格式的電子郵件”,
url: “請輸入合法的網址”,
date: “請輸入合法的日期”,
dateISO: “請輸入合法的日期 (ISO).”,
number: “請輸入合法的數字”,
digits: “只能輸入整數”,
creditcard: “請輸入合法的信用卡號”,
equalTo: “請再次輸入相同的值”,
accept: “請輸入擁有合法后綴名的字符串”,
maxlength: $.validator.format(“長度最多是 {0} 的字符串”),
minlength: $.validator.format(“長度最少是 {0} 的字符串”),
rangelength: $.validator.format(“長度介於 {0} 和 {1} 之間的字符串”),
range: $.validator.format(“請輸入一個介於 {0} 和 {1} 之間的值”),
max: $.validator.format(“請輸入一個最大為 {0} 的值”),
min: $.validator.format(“請輸入一個最小為 {0} 的值”),
alphanumeric: “字母、數字、下划線”,
lettersonly: “必須是字母”,
phone: “數字、空格、括號”