Mar 22, 2005 #1 jmiller79 Programmer Jul 13, 2004 48 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
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
Mar 22, 2005 #2 steven290 Programmer Mar 13, 2005 1,077 US try document.form[0].textfieldname.value=youvarhere; Upvote 0 Downvote
Mar 22, 2005 #3 FesterSXS Programmer Feb 4, 2002 2,196 GB Strictly speaking this should be in the Javascript forum (Forum216) Tony _______________________________________________________________ http://www.SpiraxSarco.com/ Upvote 0 Downvote
Strictly speaking this should be in the Javascript forum (Forum216) Tony _______________________________________________________________ http://www.SpiraxSarco.com/
Mar 22, 2005 #5 Sheco Programmer Jan 3, 2005 5,457 US Well you could do it on the server side like this: <input type='text' name='foo' value='<% Response.Write yourVarHere %>'> Upvote 0 Downvote
Well you could do it on the server side like this: <input type='text' name='foo' value='<% Response.Write yourVarHere %>'>