denny3d
asked on
javascript validation form message into dialog jquery
Hello EE
i have a script javascript for validate a form with alert message.
My problem is:
how i change default alert windows with dialog jquery?
my code is:
i have a script javascript for validate a form with alert message.
My problem is:
how i change default alert windows with dialog jquery?
my code is:
function check_01() {
errtxt = "";
err = 0;
//if (document.dgu.glass1.value == "seleziona" ||
//if (document.dgu.tipology1.value == "seleziona") { err = 1; errtxt += "- Prima Tipologia Vetro\n"; }
if (document.dgu.glass1.value == "seleziona" || document.dgu.glass1.value == "") { err = 1; errtxt += "- Primo Vetro\n"; }
if (document.dgu.frame1.value == "seleziona") { err = 1; errtxt += "- Primo Telaio\n"; }
//if (document.dgu.tipology2.value == "seleziona") { err = 1; errtxt += "- Seconda Tipologia Vetro\n"; }
if (document.dgu.glass2.value == "seleziona") { err = 1; errtxt += "- Secondo Vetro\n"; }
if (document.dgu.tipology3.value != "seleziona" && (document.dgu.tipology2.value == "seleziona" || document.dgu.tipology1.value == "seleziona"))
{ err = 1; errtxt += "- Secondo Vetro\n"; }
if (document.dgu.tipology3.value != "seleziona" && document.dgu.frame2.value == "seleziona") { err = 1; errtxt += "- Secondo Telaio\n"; }
if (document.dgu.frame2.value != "seleziona"
&& document.dgu.tipology3.value == "seleziona") { err = 1; errtxt += "- Terzo Vetro\n"; }
if (document.dgu.qty.value == "") { err = 1; errtxt += "- Quantita'\n"; }
if (document.dgu.w.value == "") { err = 1; errtxt += "- Base\n"; }
if (document.dgu.h.value == "") { err = 1; errtxt += "- Altezza\n"; }
if (err) {
alert("ATTENZIONE!\n\nDEVI inserire:\n"+errtxt);
} else {
document.dgu.submit();
}
}
function check_02() {
errtxt =
ASKER
Hi Kadaba
but i want use a dialog as alert windows or anything script.
regards
Denny
but i want use a dialog as alert windows or anything script.
regards
Denny
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window