I have a table that has the option to update records, but I need to change a record when it changes dynamically in the table without having to refresh. is already working the part of the server it already changes the data and tals .. but I need to refresh the page to be able to see the change made .. I have the following JS:
if(e.update){
$('#insert_form').each(function(){
$('.alert').removeClass('alert-danger').addClass('alert-success');
this.reset();
});
// Aqui eu preciso recarregar a tabela..
$('#employee_table') // Refresh!
}
This is inside a request, and if the return is update it var execute the function that is there inside ..