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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Number

Status
Not open for further replies.

jmiller79

Programmer
Joined
Jul 13, 2004
Messages
48
Location
US
I need to display a random 4 diget number in a Textbox field.I know javascript, but how do I put the number in the field. Thanks for any help
 
try

document.form[0].textfieldname.value=youvarhere;
 
Well you could do it on the server side like this:

<input type='text' name='foo' value='<% Response.Write yourVarHere %>'>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top