没有选择导入问卷的时候提示

This commit is contained in:
lizanle 2015-08-11 14:32:01 +08:00
parent 51f71d1081
commit 477db5841b
1 changed files with 14 additions and 4 deletions

View File

@ -19,9 +19,19 @@
</div> </div>
<script> <script>
function submit_quote() 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(); $('#submit_quote').parent().submit();
closeModal(); closeModal();
}else{
$('#error_show').html('您没有选择任何问卷');
}
} }
</script> </script>