小编Jak*_*ray的帖子

使用Jquery脚本进行复选框验证

如何使用此验证脚本验证复选框?我尝试了许多不同的方法无济于事.这是一个验证脚本,在我为我的目的修改的联系表单上,但无法弄清楚如何用它来验证chekboxes.这是我的表单和验证代码.

    <form id="contactForm" action="send-mail.php" method="post">
    <table width="492">
      <tr>
    <th><label>Title:</label></th>
         <td><input name="title"  id="title" type="text" class="form-poshytip" title="Enter your first name" /></td>
            </tr>
      <tr>
    <th><label>Name:</label></th>
         <td><input name="name"  id="name" type="text" class="form-poshytip" title="Enter your first name" /></td>
            </tr>
                <tr>
                   <th><label>Email:</label></th>
                     <td><input name="email"  id="email" type="text" class="form-poshytip" title="Enter your email" /></td>                                 </tr>                               
                    <tr>
                    <th><label>Company:</label></th>
                    <td><input name="company"  id="company" type="text" class="form-poshytip" title="Enter your company" /></td>
                    </tr>
                     <tr>
                    <th><label>Phone: (with area code)</label></th>
                    <td><input name="phone"  id="phone" type="text" class="form-poshytip" title="Enter your phone" /></td>
                    </tr>
                    <tr>
                    <th><label>Fax:</label></th>
                    <td><input name="fax"  id="fax" type="text" class="form-poshytip" title="Enter …
Run Code Online (Sandbox Code Playgroud)

validation checkbox jquery

0
推荐指数
1
解决办法
8300
查看次数

标签 统计

checkbox ×1

jquery ×1

validation ×1