Update datatables (JQuery) when button is clicked

后端 未结 5 1496
遇见更好的自我
遇见更好的自我 2021-02-09 01:37

I\'ve created a simple form and I\'m using the Datatables jQuery plugin to display some data in it. Data are being populated by a php script (process.php) which returns the prop

5条回答
  •  臣服心动
    2021-02-09 02:16

    It looks like you should also specify fnServerData when you setup your datable, if you want to use ajax POST: http://datatables.net/ref#fnServerData

    It's also possible that you don't need to call fnReloadAjax(), but only fnDraw(). fnReloadAjax() is a plugin function, so I assume you did previously load it.

提交回复
热议问题