Un saluto a tutti,
quanto tempo...come si suol dire chi non muore si rivede....io mi rivedo.
Scusate se ritiro fuori un vecchio post.Ma avevo abbandonato l'argomento e ora...mi ritocca.
Cercavo nel web l'oggetto che il browser crea per gli array.
se ho
sottocategoria[0]=new Array(
{text:"cd/dvd vergini",value:"21"},
{text:"cicc",value:"19"},
{text:"ciccio",value:"1"}
)
sottocategoria[1]=new Array(
{text:"xxxx",value:"23"}
e
articoli[0]=new Array(
{text:"cd/dvd vergini",value:"21"},
{text:"cicc",value:"19"},
{text:"ciccio",value:"1"}
)
articoli[1]=new Array(
{text:"xxxx",value:"23"}
)
Come faccio ad accedere all'array che mi interessa?
appo = sottocategoria [chooser.selectedIndex]
for (var i = 0; i < appo.length; i++) {
newElem = document.createElement("option");
newElem.text = appo[i].text;
newElem.value = appo[i].value;
pop_select.add(newElem);
}
Ho provato come ha detto willy ma mi da errore.
Sicuramente sbaglio io.
Qualche info????Thanks![]()

Rispondi quotando