Salve,
ho un problema che penso sia solo di sintassi ma non sono riuscito a risolvere.
All'nterno di un form (nome: upform) ho i seguenti input type="hidden":
<input id="MERGE15" type="hidden" style="" value="*|MERGE15|*" size="25" name="MERGE15">
<input id="MERGE3" type="hidden" style="" value="*|MERGE3|*" size="25" name="MERGE3">
<input id="MERGE20" type="hidden" style="" value="*|MERGE20|*" size="25" name="MERGE20">
<input id="MERGE24" type="hidden" style="" value="*|MERGE24|*" size="25" name="MERGE24">
<input id="MERGE25" type="hidden" style="" size="25" name="MERGE25">
<input id="MERGE26" type="hidden" style="" value="*|MERGE26|*" size="25" name="MERGE26">
<input id="MERGE27" type="hidden" style="" value="*|MERGE27|*" size="25" name="MERGE27">
<input id="MERGE28" type="hidden" style="" value="*|MERGE28|*" size="25" name="MERGE28">
Ho un cilco for in javascript che dovrebbe assegnare a ogni loop un valore a uno di questi input nell'ordine con cui li ho scritti sopra.
Questo array contiene il name di ogni input nell'ordine che desidero
merge = new Array("MERGE15","MERGE3","MERGE20","MERGE24","MERG E25","MERGE26","MERGE27","MERGE28");
for (s=0; s<lendescr; s++) {
part = description.substr(chunk,250);
document.upform.merge[s].value = part;
chunk = chunk + 250;
}
mi da errore in "document.upform.merge[s].value = part;" che penso sia dovuto a come ho scritto merge[s].
Grazie per l'help