0

I am modifying a Bigcommerce template. The requirement is to modify the selected value in Quantity dropdown based on other inputs by users. (I have achieved that in jsfiddle (http://jsfiddle.net/xuC6f/14/)). Question is: How do I, in bigcommerce template, control Quantity? i.e.,

$("#qty_").val(keyTechPercentage);    

When I check the Source Code, it seems there's an ITEM_ID that's attached to QTY_ that makes it look like

<select id="qty_53df2e8f36bb9" ...>

Thanks a lot in advance!

skoh
  • 576
  • 6
  • 9

1 Answers1

0

These will do it.

var opt = $("#qty_").val(7).selected();

var opt = $(".AddCartButton select").val(9).selected();
Quentin Engles
  • 2,744
  • 1
  • 20
  • 33