Find Jobs
Hire Freelancers

validate form with javascript

$30-250 USD

Đã hoàn thành
Đã đăng vào gần 12 năm trước

$30-250 USD

Thanh toán khi bàn giao
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.
Mã dự án: 1613649

Về dự án

4 đề xuất
Dự án từ xa
Hoạt động 12 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
I can done. Please check PM and my review.
$30 USD trong 0 ngày
5,0 (19 nhận xét)
4,7
4,7
4 freelancer chào giá trung bình $30 USD cho công việc này
Avatar người dùng
Javascript expert! Ready to start now.
$30 USD trong 0 ngày
4,7 (16 nhận xét)
4,9
4,9
Avatar người dùng
Lets Start! your java validation.
$30 USD trong 0 ngày
5,0 (3 nhận xét)
2,7
2,7
Avatar người dùng
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 trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của BRAZIL
rio de janeiro, Brazil
5,0
8
Phương thức thanh toán đã xác thực
Thành viên từ thg 12 22, 2011

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.