ajax update with button click

ajax update with button click

blazeorionblazeorion Posts: 2Questions: 1Answers: 0

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

  • blazeorionblazeorion Posts: 2Questions: 1Answers: 0

    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(); }
This discussion has been closed.