i developing ecommerce site using simplecartjs.org, on script works div. need product id, inside div tag, in input field.
for example,
<div class="product_id1">0033456</div> in order make payment page work need provide thisproduct id on cart page , post id payment page.
is there way can product id in input? e.g.
<input type="text" id="product_id1" value="0033456"/>
put id attribute in division <div></div>:-
<div class="product_id1" id="productid">0033456</div> now, use javascript :-
//get data division (inner data div) var innerdata=document.getelementbyid('productid').innerhtml; //set text field data here document.getelementbyid('product_id1').value=innerdata; hope you.
Comments
Post a Comment