I'm a relative JS newbie, but I'm in a bit of a pickle - for a form submission system, I need to populate a form field with a unique ID (can be anything, as long as it's relatively certain to be unique).
I thought of using getTime(), since that produces a sufficiently long and unique number for my requirements. But I can't seem to wrap my head around the code required to populate a regular (hidden) text field with this value, despite several topics on SO asking similar questions.
The form and all the HTML is already in place, all I need is the js script. Can anyone help me out?