I am struggling with a simple javascript code and for some reason, it's not working.
var number = 5;
var netiteration = "net"+number; // now netiteration is equal to net5
var formvalue = document.forms.myformname.netiteration.value;
Why is this code unable to retrieve the value from the form field named "net5" in the form with the name/id of "myformname"?
Also, I am using a JavaScript book that is 10 years old, could it be possible that the syntax has changed since then?
Thank you