我有一些代碼如下所示:包括在jQueryUI的對話框形式的一部分
<form id="MyForm" name="MyForm" method="post" action="index.php">
<input type="text" id="Input1" name="Input1">
<input type="text" id="Input2" name="Input2">
<div id="dialog">
<input type="text" id="Input3" name="Input3">
<input type="text" id="Input4" name="Input4">
</div>
<button type="button" onclick="$('#dialog').dialog('open');">Fill out 3 and 4</button>
<input type="submit" value="Submit">
</form>
我可以把表格的第二部分在jQueryUI的對話框中,輸入3 &輸入4不會出現在發佈數據。是否有可能做到這一點?
我的例子非常簡化,我在兩個表格上都有一堆東西,包括文件。有沒有辦法做到這一點,而不列出每個輸入? – Brian 2010-03-03 02:26:33
好的,我用更通用的方法更新它,所以它沒有列出每個輸入。這是僞代碼(也可能是準確的) - 沒有完全測試它,但這個想法應該起作用。 – macca1 2010-03-04 16:19:07
不適用於文件輸入,methinks。 – 2010-03-08 13:45:25