Find Jobs
Hire Freelancers

validate form with javascript

$30-250 USD

Completato
Pubblicato circa 12 anni fa

$30-250 USD

Pagato al completamento
I need only to put a existent code to validate form, a option to validate code to radio button too. The code is the known MM_validateForm from Dreamweavers behaviors. I don´t know why this code is not ready to radio button too. I have the join the two codes: if ([login to view URL]){ radioGroup = [login to view URL]["formulario"].elements["cidadeevento"]; validRadio = false; for (i = 0; i < [login to view URL]; i++) { validRadio = (validRadio || radioGroup[i].checked); } if (!validRadio) {alert("Você deve selecionar um dos dias do evento");} and function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=[login to view URL]; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=[login to view URL](args[i]); if (val) { nm=[login to view URL]; if ((val=[login to view URL])!="") { if ([login to view URL]('isEmail')!=-1) { p=[login to view URL]('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve conter um endereço de email.\n'; } else if (test!='R') { num = parseFloat(val); if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if ([login to view URL]('inRange') != -1) { p=[login to view URL](':'); min=[login to view URL](8,p); max=[login to view URL](p+1); if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n'; } } } else if ([login to view URL](0) == 'R') errors += '- '+nm+' é requerido.\n'; } } if (errors ) alert('Os seguintes erros ocorreram:\n'+errors); document.MM_returnValue = (errors == ''); } } And the asnwer to the errors joined too. And obvious, the form only send if all are complete.
Rif. progetto: 1613649

Info sul progetto

4 proposte
Progetto a distanza
Attivo 12 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
Assegnato a:
Avatar dell'utente
I can done. Please check PM and my review.
$30 USD in 0 giorno
5,0 (19 valutazioni)
4,7
4,7
4 freelance hanno fatto un'offerta media di $30 USD
Avatar dell'utente
Javascript expert! Ready to start now.
$30 USD in 0 giorno
4,7 (16 valutazioni)
4,9
4,9
Avatar dell'utente
Lets Start! your java validation.
$30 USD in 0 giorno
5,0 (3 valutazioni)
2,7
2,7
Avatar dell'utente
Hi, I have over 12 years of Experience in software design, development and implementation of various commercial applications in Client/Server environment, Web and ERP applications using C# 1.1/2.0/3.5, ASP.Net, VB.Net 1.1/2.0/3.5, AJAX, Visual Foxpro, DOTNETNUKE, VB 6.0, Crystal Reports 8.5, ASP, PHP, JSP tools, PL/SQL, MS SQL Server 2000/2005, My SQL. Regards, Oasis Software Inc
$30 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: BRAZIL
rio de janeiro, Brazil
5,0
8
Metodo di pagamento verificato
Membro dal dic 22, 2011

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.