Ajax Sending Data Twice In Views.py Django
I have this form in index.html and two submit button on clicking on one button named .graph-btn I m using jquery and ajax to send data from form to Django. Code: index.html
Solution 1:
you shoudn't use jquery class selector. use id selector(“#id”). Now it happens because you have more then one button with 'graph-btn' class. Just assign IDs to your buttons in for loop ( {% for a,b in stocks %})
Post a Comment for "Ajax Sending Data Twice In Views.py Django"