Hi,
I have the code generte random unique number but in need the code generated in a textbox. here is my code
in head
<script>
now = new Date();
randomNum = '';
randomNum += Math.round(Math.random()*9);
randomNum += Math.round(Math.random()*9);
randomNum += now.getTime();
</script>
in body
<script>document.write(randomNum)</script>
<input type="text" tooltip="User Id" id="txt_usrid" onload="this.value=randomNum">
I want the number should generate inside the text box. Can anyone help me