ciao a tutti,
avrei necessità di un aiuto per un problema su un campo.
In pratica ho creato in una pagina un campo
<input name="category" size="30" type="text" value="" class="stile" id="category">
In questo campo vado a concatenare, subito dopo il submit, tutti i valori delle checkbox che vengono selezionati.
var category = old_category + '; ' + category;
document.getElementById("category").value = category;
ottengo questo risultato : campo_category = <valore1>;<valore2>;<valore3>....<valoren>;
Se torno indietro o riapro in modifica la pagina, vedo che le checkbox non sono selezionate e il campo è pieno dei valori precedentemente inseriti.
Non appena riseleziono le checkbox, mi mette i valori doppi. La gestione delle checkbox cosi, mi adrebbe pure bene, vorrei trovare una soluzione per eliminare i valori doppi.
Qualche suggerimento?
Grazie
Ciao