嗨我需要將選定的下拉列表值傳遞給jqueryui對話框,當用戶點擊鏈接時,例如, 如果使用用戶選擇產品一,然後單擊鏈接,則對話框應彈出產品1中選擇顯示,我可以顯示該對話框:將參數傳遞給jqueryui對話框
<script>
$(document).ready({
$('a.login').click(function(){
$("#dialog:ui-dialog").dialog("destroy");
$("#product").dialog({
height: 140,
modal: true
});
});
</script>
<div class="login-homepage">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Text="product1" Value="product1">Camera</asp:ListItem>
<asp:ListItem Text="product2" Value="product2">DVD</asp:ListItem>
<asp:ListItem Text="product3" Value="product3">LCD</asp:ListItem>
</asp:DropDownList>
<a href="#" id="login">login</a>
<div id="product" title="product-container">
//show the selected dropdownlist
</div>
的問題是我不能夠 通過下拉列表中選擇的值,我嘗試使用AJAX JSON來沒有傳遞成功由於缺乏知識, 任何人都可以幫助我或提供任何建議如何解決這個問題。
感謝
我想我感到困惑你想達到什麼樣的這裏。 – Marc 2012-04-25 13:44:44