Quantity + – is incorrect, because it is compared as string
-
Hi,
I had some issue with checking the maximum quantity. I did solve it. You may want to change
( el_qty.val() >= maxStock ) ? incrementButton.hide() : incrementButton.show();
to
( parseInt( el_qty.val() ) >= parseInt( maxStock ) ) ? incrementButton.hide() : incrementButton.show();Best Regards,
JoeSz
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Quantity + – is incorrect, because it is compared as string’ is closed to new replies.