1
我有很多對話框在我的頁面Jquery UI對話框中的輸入未被髮送?
<script type="text/javascript">
function paydetail(windID) {
$(".dialog").dialog("destroy");
var dlg = $("#dialog"+windID).dialog({
resizable: false,
width: 490,
modal: true,
buttons: {
"OK": function() {
$(this).dialog("close");
}
}
});
dlg.parent().appendTo($("#domains" + windID));
return false;
}
</script>
的Html看,與獨特的名稱和ID(如姓名= 「domains_list5」 ID = 「domains5」)多種形式:
<form action="/domains_list/" method="POST" name="domains_list{$domain.id}" id="domains{$domain.id}">
<tr>
<td width="50" class="datetime acenter">
<a href="#" onclick="paydetail('{$domain.id}'); return false;"><img src="{$site_root}{$css_js_path}/images/domen_info.png" /></a>
<div id="dialog{$domain.id}" class="dialog dialog-infopay hide" title="info">
<table align="center">
<tr>
<td align="right">ID: </td>
<td align="left">
<input type="text" value="{$domain.webmaster_id}" name="domain_webmaster_id[{$domain.id}]" style="width: 50px" />
</td>
</tr>
</table>
</div>
</td>
<td width="90">
<input style="margin: 20px auto 15px;" type="button" class="btn" onclick="javascript: document.domains_list{$domain.id}.submit();" value="Обновить" />
</td>
</tr>
</form>
後提交一個表單,我不會從這個表單中獲取modal的POST數據。請幫我