Don't Reload Webpage After Flask Ajax Request
I have this ajax request  $(function() {     $('#left').bind('click', function() {         var form = $('form#data')[0]; //          var formData = new FormData(form);          $.a
Solution 1:
Blind guess : your button may be part of a form, so its default behaviour when clicked is to submit the form and reload the page. You can prevent that by using event.preventDefault() :
$('#left').bind('click', function(event) {
    event.preventDefault()
    ......
Post a Comment for "Don't Reload Webpage After Flask Ajax Request"