Hi all,
I'm try to set up a hidden variable that takes the value of an input:
As you can see, I had originally been using a function (getfinal) which works fine if I don't dynamically add duplicate inputs that get different values. To solve this problem. I was hoping that I could just copy the X.value across, but it doesn't work.
Any ideas?
Thanks in advance
I'm try to set up a hidden variable that takes the value of an input:
Code:
bFINALTEXT1 = document.createTextNode("Final:");
bFINAL1 = document.createElement("input");
bFINAL1.style.width="5em";
bFINAL1.type="text"
bFINAL1.name=compXY+'comp[]';
//bFINAL1.onblur=function(){getfinal(this.value);};
bMAX1 = document.createElement("input");
bMAX1.type="hidden"
bMAX1.name=compXY+'comp[]';
//
bMAX1.value=bFINAL1.value
Any ideas?
Thanks in advance
Comment