I'm using codeigniter 3.
I have a view with a form, and I need to submit this form with ajax. No problem with that. The problem is: i have a datatable that's populated with Ajax...when I build datatable, I call an url that return rows to this datatable:
"ajax": {
"url": "<?php echo site_url('clientes/relatorio_atendimentos_buscar')?>",
"type": "POST"
},
But using a form, how to submit this to a controller, that will return data to datatable?
***EDIT
Changing question to: how to serialize form and call datatable ajax URL on submit?