Commit 8cc83820e0ca51b9b51aaa8a737b87f7d0d6e8e0
1 parent
7bbf5236
1.修改添加数字题后不能选择选项bug
Showing
1 changed file
with
2 additions
and
0 deletions
WebRoot/static/js/control-604.js
@@ -360,11 +360,13 @@ $(function() { | @@ -360,11 +360,13 @@ $(function() { | ||
360 | if ($("#type").val() == 4) { | 360 | if ($("#type").val() == 4) { |
361 | $("#num_ans_2").val(2); | 361 | $("#num_ans_2").val(2); |
362 | $("#num_ans_2").attr("disabled", "disabled"); | 362 | $("#num_ans_2").attr("disabled", "disabled"); |
363 | + $("#num_ans_2").closest(".form-group").css("display","block"); | ||
363 | }else if($("#type").val() == 6){ | 364 | }else if($("#type").val() == 6){ |
364 | $("#num_ans_2").closest(".form-group").css("display","none"); | 365 | $("#num_ans_2").closest(".form-group").css("display","none"); |
365 | }else { | 366 | }else { |
366 | $("#num_ans_2").removeAttr("disabled"); | 367 | $("#num_ans_2").removeAttr("disabled"); |
367 | $("#num_ans_2").val(4); | 368 | $("#num_ans_2").val(4); |
369 | + $("#num_ans_2").closest(".form-group").css("display","block"); | ||
368 | 370 | ||
369 | } | 371 | } |
370 | }) | 372 | }) |