Skip to content
Advertisement

++ & — issue using jquery for same Submit button for Cart Product quantity(Php)

I have some problems during working with cart product ++ and — using jquery and form submit on button click also but only first cart product working correctly and another not working because Id issue Please reffer my code as below :

JavaScript
JavaScript

Advertisement

Answer

You have issue with ID and Class

If you want to submit when they click, you need to do this:

Please note I removed all stuff from the plus/minus buttons and moved the ID to class

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement