|
Posted by Nonee on 10/11/05 07:41
If I am understanding what you are looking for, you should be able to
access the form field, hidden or otherwise, directly aka:
document.whateveryourformiscalled.business.value = 10;
On Sun, 2 Oct 2005 23:58:39 -0500, "Stewart" <nomailplease@mail.com>
wrote:
>I'm trying to populate a HTML text or hidden input with a value from
>javascript.
>
>the Javascript values do display with this test:
>
><SCRIPT LANGUAGE="JavaScript">
><!-- Begin
>business = unescape(params["business"]);
>amount = unescape(params["amount"]);
>item_name = unescape(params["item_name"]);
>
>document.write("business = " + business + "<br>");
>document.write("amount = " + amount + "<br>");
>document.write("item_name = " + item_name + "<br>");
>// End -->
></script>
>
>HTML input:
>
><input type="text" name="business" value=business />
>
>I can't find any examples or direction for this.
>Any suggestions?
>
Navigation:
[Reply to this message]
|