I used the following code JQuery
to avoid reloading the page when inserting a record in the database. actually stopped reloading, but it is not allowing you to save the records to the bank.
$( "#btnAtividades" ).click(function( event ) {
event.preventDefault();
});
I have been told that I have to do something else after the event, but nobody explains exactly what I found some examples, but it was pure PHP and I'm using Laravel.