没有选择导入问卷的时候提示
This commit is contained in:
parent
51f71d1081
commit
477db5841b
|
@ -19,9 +19,19 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
function submit_quote()
|
||||
{
|
||||
$('#submit_quote').parent().submit();
|
||||
closeModal();
|
||||
function submit_quote() {
|
||||
$('#error_show').html('');
|
||||
var selected = false;
|
||||
for(var i = 0; i < $("input[name='polls[]']").length;i++){
|
||||
if($("input[name='polls[]']")[i].checked){
|
||||
selected = true;
|
||||
}
|
||||
}
|
||||
if (selected){
|
||||
$('#submit_quote').parent().submit();
|
||||
closeModal();
|
||||
}else{
|
||||
$('#error_show').html('您没有选择任何问卷');
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue