Buona Pasqua a tutti.
Vorrei sapere perchè questa funzione mi restituisce errore:
codice:
function loadingAjax(div_id)
{
$("#"+div_id).html('[img]/images/spinner4-greenie.gif[/img] Saving...');
$.ajax({
type: "GET",
url: "_get.asp?q="+document.forms['Qform'].elements['Citta'].options.selectedIndex.value,
data: "",
success: function(msg){
$("#"+div_id).html(msg);
}
});
}
<form name="Qform">
<select size="1" id="Citta" name="Citta">
...
...
</select>
</form>
L'errore è:
Dettagli errore pagina Web
Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Sat, 23 Apr 2011 19:39:57 UTC
Messaggio: 'document.forms.Qform.elements.Citta.options' è nullo o non è un oggetto
Linea: 67
Carattere: 2
Codice: 0
URI: http://localhost/_FORM.ASP