I\'m trying to use ajax in Django to post comment in a news website.However it doesn\'t work.When I click the submit button,it still refreshes the page and make no d
Add click event on button not on form and You have to change that to button implicitly. By default the type of a button is submit.
button
form
Remove id of form. Submit button submits form-data and reload the page.
id