title: How do I update a field (using jquery or javascript) after editing it's value on the table
body: <p>I have a cart implemented and after someone adds an item to the cart they can change the quantity and click update to make the required changes. However, after it has been clicked I want it to say UPDATED!</p>
  
  <p>And now if someone clicks on the field again to update it. It should change back to a button that says update. </p>
  
  <p>How do I do this? I'm not very familiar with jquery or javascript</p>
  
  <p>Thank you.</p>