|
@@ -20,7 +20,7 @@
|
|
|
<a class="btn" href="${ctx}/admin/exam/paper">返回</a>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <label>合分数量:</label><input name="selectiveCount" type="text" id="selectiveCount" value="${selectiveCount }"/>
|
|
|
+ <label>合分数量:</label><input name="selectiveCount" min="1" class="digits" type="number" id="selectiveCount" value="${selectiveCount }"/>
|
|
|
<a id="btnSubmit" href="##" class="btn btn-primary">确定</a>
|
|
|
</div>
|
|
|
<br/>
|
|
@@ -59,8 +59,12 @@ $('#btnSubmit').click(function () {
|
|
|
alert('请选择题目');
|
|
|
return false;
|
|
|
}
|
|
|
- if($("#selectiveCount").val()>=check_list.length){
|
|
|
- alert("合分数量必须小于选择的题目数量");
|
|
|
+ if(!$("#selectiveCount").val()){
|
|
|
+ alert("合分数量不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if($("#selectiveCount").val()>=check_list.length || $("#selectiveCount").val()<1){
|
|
|
+ alert("合分数量必须小于选择的题目数量且大于等于1");
|
|
|
return;
|
|
|
}
|
|
|
$('#inputForm').submit();
|