Output data and messages directly in the view
问题 I am currently working on ajax, jquery and javascript. I have slight problems with it. I can use this code to send the data and they are stored in the database. But the data will not be displayed directly after sending in the view, until I have reloaded the page. How can I output the data directly in the view without reloading the page? How can I output errors and success messages as flashmessage (toastr) message? how can I rewrite this code that works? I get the error message that it is a