我正在使用JQuery Validation尝试验证表单中的两个输入字段。我遇到的问题是,作为第一个问题,我所拥有的问题并不重要,除非通过表格中较早输入的值动态填充字段,否则永远不会通过验证调用辅助字符。以下是我遇到问题的两个部分:
<div class="form-panel">
<div class="row collapse">
<div class="medium-3 columns">
<label for="selectFinish" class="inline show-for-medium-up"> Style</label>
</div>
<div class="medium-9 columns">
<select name="Pri-CompID" id="selectFinish" class="priceCalc required">
<option value="" selected="selected"></option>
<option value="">Select a size before proceeding.</option>
</select>
</div>
</div>
</div>
<div class="form-panel">
<div class="row collapse">
<div class="medium-3 columns">
<label for="selectFastener" class="inline show-for-medium-up"> Fastener</label>
</div>
<div class="medium-9 columns">
<select name="Pri-CompID" id="selectFastener" class="priceCalc required">
<option value="" selected="selected"></option>
<option value="">Select a size before proceeding.</option>
</select>
<div id="punchSlot"></div>
</div>
</div>
</div>