I have the following Jquery script with ajax
$('#btn_cofr_update').click(function(e){
e.preventDefault();
var form =$('#form_upd_requi');
var action=form.attr('action');
var id=$('#id_').val();
var data=$('#form_upd_requi').serialize();
var url=$(this).attr('href');
$.ajax({
type:'PUT',
url:'/admin/requirements/'+id,
data:data,
success:function(data){
console.log(data);
},
error:function(data){
console.log('mal');
}
});
});
It works fine, but in order to update the view I have to reload the page I would like to know how I can do it so that I can update the table without recharging the whole page Muchas Graciass