Mar 22, 2005 #1 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
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 Joined Mar 13, 2005 Messages 1,077 Location US try document.form[0].textfieldname.value=youvarhere; Upvote 0 Downvote
Mar 22, 2005 #3 FesterSXS Programmer Joined Feb 4, 2002 Messages 2,196 Location 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 #4 steven290 Programmer Joined Mar 13, 2005 Messages 1,077 Location US fester is correct Upvote 0 Downvote
Mar 22, 2005 #5 Sheco Programmer Joined Jan 3, 2005 Messages 5,457 Location 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 %>'>