Say I have an input field WITHOUT any unique ID in an HTML form.
On focus, a new JS object related to this input will be created by a function.
Is there a way to save a reference to that object for later use without resorting to global JS variables?
Something like setting <input data-obj="#obj3247"> (just an example...actually doing it will result in data-obj="[object Object]") that ties the HTML to the JS?