I have a page where I need to store a value for processing via Ajax/jQuery. I'm using a hidden input field to store this value like this:
<input type="hidden" name="..." id="..." value="..." />
I can access this value through jQuery even if it is NOT in a form (ie: it's just at the start of my HTML output).
Question: even though it works, is it OK/legal to do from a correctness perspective to have a hidden input value which is not part of a form?