[Answered ]-Clicking the reset radio button tries to submit the form in Django

1👍

UPDATE: You need to specify type="button" in your <input> element for the form reset. More info here.

👤Wtower

1👍

To prevent the form from being submitted:
Add the typeattribute button to your button like this:

<button type="button" onclick="resetEffort();">My button</button>

Leave a comment