Update datatables (JQuery) when button is clicked

后端 未结 5 2001
夕颜
夕颜 2021-02-09 01:46

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:17

    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.

提交回复
热议问题