Php 仅当字段包含值时引导验证
仅当字段包含值时引导验证 我只想在以下情况下使用我的引导验证程序 我在下面得到了使用引导验证程序的代码Php 仅当字段包含值时引导验证,php,jquery,twitter-bootstrap,validation,Php,Jquery,Twitter Bootstrap,Validation,仅当字段包含值时引导验证 我只想在以下情况下使用我的引导验证程序 我在下面得到了使用引导验证程序的代码 <tr> <td><b>1</b></td> <td> <select class="form-control" name="DaySelection1"> <option value="">Select</option> <option value="wed">Wed<
<tr>
<td><b>1</b></td>
<td>
<select class="form-control" name="DaySelection1">
<option value="">Select</option>
<option value="wed">Wed</option>
<option value="thu">Thu</option>
<option value="fri">Friday</option>
</select>
</td>
<td class="form-group">
<input type="text" class="form-control" name="digits1"
required
min="000"
data-bv-greaterthan-inclusive="true"
data-bv-greaterthan-message="The input must be greater than or equal to 0"
max="999"
data-bv-lessthan-inclusive="false"
data-bv-lessthan-message="The input must be less than or equal to 999" />
</td>
<td class="form-group"><input type="number" data-bv-digits-message="true" class="form-control" name="big1" id="name1" size="6"></td>
<td><input type="number" class="form-control" name="small1" size="6"></td>
</tr>
每个输入的名称按“digits$i”、“big$i”、“small$i”等顺序排列。
其中,$i是的整数
1 to 10
标识输入类型的每一行的步骤
如何更改引导代码
因为当前我得到了一个for循环,它打印出了相同的字段,那些未填充的字段也完成了验证,所以我只想验证得到DaySelection值的行
data-bv-threshold="1"
来解决我的问题
data-bv-threshold="1"