Task in PHP and JavaScript -- 2

Job ID: 33666955

Budget: $10 – $30 USD

I am doing a validation so that the entered quantity is not greater than the warehouse stock of the product I want to buy, but it is taking the values ​​of the first item, that is, the stock and quantity of the first product.

I need it to take the quantity and stock of the product when clicking the “Add” button.

Connect remotely to fix the problem.
Related categories: PHP JavaScript MySQL jQuery