I am using JS to set multiple forms which have the following hidden input.
<input type="hidden" name="sGUID" id="sGUID" value="">
Using my JS function I use
document.getElementById("sGUID").value = "my value goes here";
The problem is this only sets the last instance of the sGUID to the value set. How can I ensure all of them are set to this?
data-idinstead