All of the rows in the cart are in the same form, so it won't know which row you clicked on. You can probably put the <form> tag around the <tr> so each row has its own form and it will start working properly.