I am developing an ecommerce site using simplecartjs.org, everything on that script works by div. I need to get product id, inside a div tag, in an input field.
in order to make payment page work i need to provide this product id on cart page and then post that id to payment page.Code:<div class="product_id" id="product_id1">0033456</div>
is there any way i can get product id in input? e.g.
please note that there can one or more <div> product_id. e.g. if user adds one product then there will be only one input. if user adds three products then there will be three input in form.
Code:<input type="text" id="product_id1" value="0033456"/>