select_tag两级联动


=label_tag :querycode, '行政区划'
=select_tag :querycode, options_for_select([['','']] + select_dis_options, params[:querycode]), {:style => 'width:>
=label_tag "communication[department_id]", '所属部门'
 %span#depart_container
    =select_tag "communication[department_id]", options_for_select([['','']] + select_district_depart(District.find_>



注意:找depart_comtainer时要用span包下!select_tag不能两个叠加!

你可能感兴趣的:(java)