JQuery Form Verification plug-in EasyValidator

Source: Internet
Author: User

 

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head runat = "server">
<Title> </title>
<Link href = "../Scripts/validate/css/validate.css" rel = "stylesheet" type = "text/css"/>
<Script src = "../Scripts/validate/js/jquery-1.3.2.min.js" type = "text/javascript"> </script>
<Script src = "../Scripts/validate/js/validate. pack. js" type = "text/javascript"> </script>

</Head>
<Body>
<Form id = "form1" runat = "server" name = "validateForm">
<Table width = "800" border = "0" class = "ad" cellpadding = "0" cellspacing = "1" bgcolor = "#999999" id = "testTable">
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
Player account:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<% -- <Input name = "flightno" type = "text" id = "flightno" reg = "^ \ w {2} \ d + $"/> -- %>
<Asp: textBox ID = "txt_name" name = "txt_name" runat = "server" reg = "^ \ w {2} \ d + $" Width = "200"> </asp: textBox>
<Span name = "easyTip"> (game provider name: [2-letter abbreviation] + User ID: [number] For example: sd10059) </span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
Chinese Name:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<Asp: textBox ID = "txt_cname" name = "txt_cname" runat = "server" reg = "^ [\ u4e00-\ u9fa5] + $" Width = "200"> </asp: textBox>
<% -- <Input name = "floatNum" type = "text" id = "floatNum" reg = "^ [\ u4e00-\ u9fa5] + $"/> -- %>
<Span name = "easyTip"> (only Chinese characters are allowed) </span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
Phone number:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<Asp: textBox ID = "txt_phone" name = "txt_phone" runat = "server" reg = "^ \ d {3}-\ d {8 }$ | ^ \ d {4 }- \ d {7} $ "Width =" 200 "> </asp: textBox>
<% -- <Input name = "str" type = "text" id = "str" reg = "^ \ d {3}-\ d {8} $ | ^ \ d {4}-\ d {7} $ "/> -- %>
<Span name = "easyTip"> (Chinese phone number, in the format of 0832-4405222 or 021-87888822
) </Span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
Email Address:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<Asp: TextBox ID = "txt_mail" name = "txt_mail" runat = "server" reg = "^ \ w + ([-+.] \ w +) * @ \ w + ([-.] \ w + )*\. \ w + ([-.] \ w +) * $ "Width =" 200 "> </asp: TextBox>
<% -- <Input name = "groupname" type = "text" id = "groupname" reg = "^ \ w + ([-+.] \ w +) * @ \ w + ([-.] \ w + )*\. \ w + ([-.] \ w +) * $ "tip =" "/> -- %>
<Span name = "easyTip"> (email address, such as wangking717@qq.com) </span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
URL:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<Asp: TextBox ID = "txt_url" name = "txt_url" runat = "server" reg = "^ (http | https | ftp )\: // [a-zA-Z0-9 \-\.] + \. [a-zA-Z] {2, 3} (: [a-zA-Z0-9] *)? /? ([A-zA-Z0-9 \-\._\? \, \ '/\ + & % \ $ # \ = ~]) * $ "Width =" 200 "type =" codeph "text =" codeph "> </asp: TextBox>
<% -- <Input name = "time1" type = "text" id = "time1" reg = "^ (http | https | ftp )\: // [a-zA-Z0-9 \-\.] + \. [a-zA-Z] {2, 3} (: [a-zA-Z0-9] *)? /? ([A-zA-Z0-9 \-\._\? \, \ '/\ + & % \ $ # \ = ~]) * $ "/> -- %>
<Span name = "easyTip"> (URl format, FTP, HTTP, and HTTPS are allowed) </span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
Image Upload:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<Input name = "imgFile" type = "file" id = "imgFile" reg = ". * gif | png $ "/> <span name =" easyTip "> (allows GIF and PNG images) </span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td align = "right" bgcolor = "# EEEEEE" width = "150px" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
Where:
</Td>
<Td align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
<Select id = "from" name = "from" reg = "[^ 0]">
<Option value = "0"> -- select where you are from -- </option>
<Option value = "a"> Beijing </option>
<Option value = "B"> Shanghai </option>
<Option value = "c"> Sichuan </option>
</Select> <span name = "easyTip"> </span>
</Td>
</Tr>
<Tr bgcolor = "# ffffff">
<Td colspan = "2" align = "left" style = "padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px; ">
<% -- <Input type = "submit" name = "submit" value = "submit" id = "submit"/> -- %>
<Asp: ImageButton ID = "imgbt_save" runat = "server"/>
</Td>
</Tr>
</Table>
</Form>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.