0
如何將數據傳遞給jqModal?例如,當Button2被點擊時,我可以傳遞按鈕的ID或隱藏的字段,並讓控制器撿起它?jqModal傳遞參數
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
$(document).ready(function() {
$('#title').css('background-color', 'red');
$('#dialog').jqm({ trigger: '.Button2', ajax: "/Home/AddAssignment" });
});
</script>
<h2 id="title">Index</h2>
<div id="dialog" class="jqmWindow">This is a dialog window</div>
<a class="Button2" id="Button2">Test</a>
<div id="someDiv">some div</div>
</asp:Content>
感謝, rodchar
感謝您的幫助, 棒 – Rod 2009-10-09 12:49:06