www.gusucode.com > 35:【198-4537】财税代理公司注册代理记账网站织梦模板(带手机端) > 35:【198-4537】财税代理公司注册代理记账网站织梦模板(带手机端)/www6/style/js/form_ck.js
function form_c(id){ var str=""; $(".formstrck"+id).each(function(index, element) { var s_arr=$(this).attr("id").split("|%|"); var obj=$("#"+s_arr[1]); if(s_arr[2]==1||s_arr[2]==2||s_arr[2]==10||s_arr[2]==9){ if (obj.val()==""){ if(s_arr[2]==9){ $.dialog.alert("请上传"+s_arr[0]+"!",function(){$(obj).focus();}); }else{ $.dialog.alert("请输入"+s_arr[0]+"!",function(){$(obj).focus();}); } str="n"; } } }); if(str=="n"){ return false; } }