- 注册时间
- 2013-7-11
- 最后登录
- 2015-1-6
- 阅读权限
- 10
- 积分
- 146
- 精华
- 0
- 帖子
- 31
|
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ComboBox 下拉选择框</title>
<% String path=request.getContextPath(); %>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="<%=path%>/utils/scripts/boot.js" type="text/javascript"></script>
</head>
<body>
<h4>选择</h4>
<div id="grid">
收款方:<div id="receiver" class="mini-combobox" style="width:250px;" popupWidth="400" textField="receiver" valueField="receiverId" name="langReceiver"
multiSelect="false" allowInput="true" showClose="true"/>
<div property="columns">
<div header="收件" field="receiver"></div>
<div header="收件人" field="Name"></div>
<div header="电话" field="phone"></div>
</div>
</div>
收件人:<input id="name" name="name" class="mini-textbox"/>
电话:<input id="phone" name="phone" class="mini-textbox"/>
</div>
<script type="text/javascript">
$(document).ready(function (){
$.ajax({
url : "com.sie.ems.util.pub.queryInfo.biz.ext",
type : "post",
dataType : "JSON",
contentType : "application/json; charset=utf-8",
success : function (data)
{
//alert(JSON.stringify(data.Infos));
mini.get("receiver").setData(data.Infos);
},
error : function (jqXHR, textStatus, errorThrown)
{
alert(jqXHR.responseText);
}
}
);
}
);
</script>
</body>
</html>
现在我想获取下拉框中的值,赋值到定义的两个文本框,请问怎么解决呀,新手
|
|