📄 money_selectsmallclass_ajax.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.MoneyClassDA"/>
<jsp:directive.page import="com.captainli.struts.form.MbigclassForm"/><html><head><meta http-equiv="Content-Type" content="text/html; charset=GB2312"><title>Insert title here</title></head><body><%//ajax实现联动菜单
if(request.getParameter("mbc_type").toString().equals("0")){%>
<select name="msc_mbc_id" id="msc_mbc_id">
<option value="0">--选择帐务大类--</option>
</select> <font color="#ff0000">*</font>
<%}else{
ArrayList arry = new MoneyClassDA().showMBigClassByType(Integer.parseInt(request.getParameter("mbc_type").toString()));
%><select name="msc_mbc_id" id="msc_mbc_id" onchange="sub()">
<option value="0">--选择帐务大类--</option><%
for(int i = 0;i < arry.size();i++){
MbigclassForm form = (MbigclassForm)arry.get(i);
%><option value="<%= form.getMbc_id() %>"><%= form.getMbc_name() %></option><%} %></select> <font color="#ff0000">*</font>
<%} %></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -