I'm wanting to know the best way to make this form not use a button but return a valid discount code and then apply it to the price and show on page.
<input type="text" name="discount_code" value="" class="text" id="discount_code" title="Discount code">
This just posts to the same page.
I understand that onChange and Ajax would be used but not sure how to do this, so looking for some help/examples on this please.
Many Thanks.