codice:function controllaSubmit() { var oggetti= document.nomeForm.elements.length; for (x=0; x<= oggetti; x++) { if (document.nomeForm.elements[x].value = '' OR document.nomeForm.elements[x].value = null) { alert("Prego inserire i dati richiesti"); document.nomeForm.elements[x].focus(); break; return false; } else { document.nomeForm.submit(); } } }
Funzione da richiamare all'onClick sia su immagine che su bottone. Prova.. nn ne sono certa ma potrebbe funzionare

Rispondi quotando