I have a button with id="reset"
, So when the button is clicked I want to do two things:
- The form has to be reset.
- Refresh the
datatable
.
Js/jQuery:
$("#reset").click(function(){
$("myform").reset();
var oTable = $('#documentreport').dataTable();
oTable.fnDraw();
}
This is what I have tried so far. Any help would be appreciated