Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing an arg from an html form to print using java

Status
Not open for further replies.

Johnyed

Technical User
Aug 4, 2009
3
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top