Link to home
Start Free TrialLog in
Avatar of RICHARDH
RICHARDH

asked on

Value in a text field.

I have a Text field on a web page called S1. I need to use the value stored in this field in a javascript routine. How do I refer to the field to find its value.

Many thanks for the help.

RGH
Avatar of PBall
PBall

variable_name_here = document.form_name_here.S1.value;

<form name=F1>
<input type=text name=S1 value=''>
:
:

s1value = document.F1.S1.value;
ASKER CERTIFIED SOLUTION
Avatar of srivenky
srivenky
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial