【发布时间】:2012-06-01 15:11:34
【问题描述】:
我正在尝试在 datatables.net 表中提交带有复选框元素的表单。
这个例子说明了我想要做什么:http://www.datatables.net/examples/api/form.html
但我希望发布值而不是警告消息(使用 PHP 脚本的表单操作)
我添加了这一行...
<form id="form" action="test.php" method="post">
并删除了警报...
alert( "The following data would have been submitted to the server: \n\n"+sData );
但我的 PHP 脚本只能看到使用 datatables.net 的寻呼机按钮发布在当前“页面”上的复选框值。在脚本中保留警告行,我确实看到了所有正确的复选框值。
如何删除警报并将序列化数据发布到我的 test.php 脚本?
【问题讨论】:
标签: php jquery jquery-datatables