1👍
✅
write :
e.preventDefault();
e.stopPropagation();
instead of
e.preventDefault();
And
write
$.post("/saveFeedback2/",{ feedbackStatus:"Like", feedbackNoteID : "12345" });
instead of
$.post("/saveFeedback2/",{ feedbackStatus:"Like", feedbackNoteID = "12345" });
0👍
Use
$(document).ready(function() {
$("#saveuserFeedback").submit( ...
instead and it should works
0👍
Use both e.preventDefault();
and e.stopPropagation();
.
Also make sure you close the form </form>
- [Answer]-MultipleChoiceFileld in ModelForm will only submit when default option available but nothing is selected
- [Answer]-Python Django Form: Setting initial values for CharFields
- [Answer]-Django adding an empty label to Choice Field using a ValueListQuery Set for distinct values
- [Answer]-Disable user registration with django-social-auth
- [Answer]-Django memcached on red hat
Source:stackexchange.com