There is a site with a form. Form data must be processed on the server, but when you click on the submit button, the page is updated. It is necessary to make that when you click on the button, the data is sent to the server, as well as added to the table on the site. I will write the addition of data through JS, and how to send data to the server without refreshing the page? Or is there a more elegant solution? On the Python / Flask server

  • Fine. Change submit to button and the page is not updated! - Kirill Losev
  • Well, of course, submit sends the form data to the server, and button is just a button, it will influence the form only when the developer himself writes functionality for it - Vasily Barbashev

0