if(zhengchang_stop&&no_zhengchang_wancheng&&respon_info_lists){ $('form[name="form2"]').submit(); return true; } if(chongpai_pai&&no_zhengchang_wancheng&&respon_info_lists){ $('form[name="form2"]').submit(); return true; } <form action='{:U('Kesu/publish_do')}' method='post' class='publish_fc' name='form1'></form> <form action='{:U('Kesu/publish_do')}' method='post' class='publish_fc' name='form2'></form>