jQuery - Can't stop getting old submit values from a previous successful form submit
By : Pari Gematria
Date : March 29 2020, 07:55 AM
will help you You are submitting the same form. It doesn't matter what button you click. You have both buttons bound to a click event which triggers a single form to submit which contains two values. Also, your ids are set not your class so it should be $('li#button').... You change your html to class though for proper semantics.