scusate ragazzi in questa function
come posso isolarla ad una sola select,
cioè questa funzione deve funzionare solo per la select che ha
come name "pippo"
così come riportata sopra, qualunque select nella pagina interferisce con lo script,codice:$("select").change(function () { var str = ""; var libro = '4000' $("select option:selected").each(function () { str += $(this).text() + ""; }); document.getElementById("ciccio").innerHTML = str;
il name dove va messo?
qui?? :
codice:$("pippo").change(function () { var str = ""; var libro = '4000' $("select option:selected").each(function () { str += $(this).text() + ""; }); document.getElementById("ciccio").innerHTML = str;![]()

Rispondi quotando