I am very limited in my javascript knowledge. I am trying to pass the value of an input box into a hidden input field but the value just comes up as 0 and not what the person puts in the input box. Here is the code. Btw the onkeyup on the input is used for a different function.
[code=html]
<form name=”order” method=”POST” action=”https://order.store.yahoo.net/yhst-73567813481049/cgi-bin/wg-order?yhst-73567813481049″>
<input onkeyup=”return autocalc(this,quantity1,quantity2,quantity3,quantity4)” name=”quantity0″ type=”text” value=”0″ maxlength=”3″ size=”3″ />
</form>
<script type=”text/javascript”>
jsquantity = document.order.quantity0.value;
document.write(‘<input type=”hidden” name=”vwattr0_Eco Hemp Pinwheel” value=”‘);
document.write(jsquantity);
document.write(‘”>’);
</script>