form not validating on submit code example
Example 1: form confirm before submit
<form
method="post"
onSubmit="return confirm('Are you sure you wish to delete?');">
...
</form>
Example 2: validate on submit not working
{{ form.csrf_token }}