ajax update with button click
ajax update with button click

Hi I would like to click a button and send a POST with a custom parameter, then have the table update. is this possible?
This discussion has been closed.
Hi I would like to click a button and send a POST with a custom parameter, then have the table update. is this possible?
Answers
I ended up using GET instead:
<button type="button" id="next" onclick="next()">Next</button>
function next(){ var table = $('#example').dataTable(); table.api().ajax.url( 'example.php?customerno='+decodedString ).load(); }