1👍
✅
UPDATE: You need to specify type="button"
in your <input>
element for the form reset. More info here.
1👍
To prevent the form from being submitted:
Add the type
attribute button to your button like this:
<button type="button" onclick="resetEffort();">My button</button>
- [Answered ]-Function for every a django-model
- [Answered ]-Django import error when trying to migrate models from app to app
- [Answered ]-Django – extend date template filter
Source:stackexchange.com