I'm not real good at java but heres what I'm trying to do.
I want to open a div using getElement WITH VARIABLES so I can write then into hidden form fields. The problem is I don't know how to pass the variables. Below is an example of what I'm trying to do but it is missing parts {the arguments as I don't know how to pass them}
Open html form
<form name="cart" action=" target="_blank" method="post">
Input button to display div
<input name="product" type="radio" value="z105n" onClick="document.getElementById('hideaway').style.display='block';">
Div
<div id="hideaway" style="display:block;">
<input type=hidden name=color value="
<SCRIPT LANGUAGE="JavaScript">
document.write(document.cart.product.value);
</script>
">
blah blah blah
</div>
Any advice would be greatly appreciated. I have no idea how to do this.
Thanks
John
I want to open a div using getElement WITH VARIABLES so I can write then into hidden form fields. The problem is I don't know how to pass the variables. Below is an example of what I'm trying to do but it is missing parts {the arguments as I don't know how to pass them}
Open html form
<form name="cart" action=" target="_blank" method="post">
Input button to display div
<input name="product" type="radio" value="z105n" onClick="document.getElementById('hideaway').style.display='block';">
Div
<div id="hideaway" style="display:block;">
<input type=hidden name=color value="
<SCRIPT LANGUAGE="JavaScript">
document.write(document.cart.product.value);
</script>
">
blah blah blah
</div>
Any advice would be greatly appreciated. I have no idea how to do this.
Thanks
John