我的页面中有很多对话框
<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 的多个表单(例如 name="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>
提交一个表单后,我没有从该表单中的模态获取 POST 数据。请帮我