我具有必须从下拉列表中选择“客户”的功能,然后它将获取该客户的地址。 如果我单击Address TextBox,则会弹出一个JQuery弹出窗口并显示所有地址。 我正在尝试打开JQuery弹出窗口,但是每当我单击文本框txtFromAddress时,它将在控制台中显示此错误。
.aspx页面代码
<asp:DropDownList ID="ddlFromCustomer" runat="server" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ddlFromCustomer_SelectedIndexChanged"></asp:DropDownList>
<asp:TextBox ID="txtFromAddress" runat="server" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<script type="text/javascript">
$(function () {
PopupForPanel();
});
function PopupForPanel() {
$("[id*=txtFromAddress]").click(function () {
ShowFromAddress();
return false;
});
}
function ShowFromAddress() {
$("#dialog1").dialog({
title: "Select Address",
width: 900,
height: 300
});
}
</script>
<div id="dialog1" style="display: none">
JQuery popup
//display all address records based on selected customer
</div>
请帮助,谢谢。