Results 1 to 1 of 1
Aug 13, 2006, 20:39 #1
- Join Date
- Aug 2006
- 0 Post(s)
- 0 Thread(s)
Create a random number in the value= attribute on a hidden input field
I'm wanting to have a randomly generated number as the value of a tag each time I reload the page.
<form action="whatever.asp" method="post" name="myform" onsubmit="return ValidateForm(this)">
<input type="hidden" name="v46" value="8773">
I want to replace the 8773 of the attribute value="8873 with a randomly generated number between 1-9999. So far I have found the code below which generates a random number as the value in a visible input field.
What I need it to do is change in the actual code of the page each time the page reloads for a hidden input value. So evertime you refresh the page the value="8873" in the actual code changes to a different number.
Any Ideas? Any help would be greatly appreciated.