CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2397|Reply: 5

nk tnya psl validatian..urgent

[Copy link]
Post time 27-2-2008 04:39 PM | Show all posts |Read mode
nk tnya pasal validatian gna java script untuk final projek..
1) cm nk buat validation  cthnya kalu kt form kta kna masuk nama dan nama tu hanya character shj kalu bt masuk no atau selain dr char alert akn kluar.
2)pasal date cm ner kta nk check date yg kta mskkan btol atau salah
3)nk check date cthnya expired data..bila dh nk xpired akn kluar validate..cm ner nk buat..dh cuba bt tp x dpt2
Reply

Use magic Report


ADVERTISEMENT


Post time 27-2-2008 05:07 PM | Show all posts

Reply #1 nedya_fhs's post

taip jek "javascript validation form" dekat Mr. Google...kat situ dia akan kasik contoh script lagi...ambil jek...
Reply

Use magic Report

Post time 27-2-2008 07:38 PM | Show all posts
Originally posted by myhazil at 27-2-2008 05:07 PM
taip jek "javascript validation form" dekat Mr. Google...kat situ dia akan kasik contoh script lagi...ambil jek...


betul tu... salah satu ni -> http://javascript.internet.com/
Reply

Use magic Report

Post time 28-2-2008 02:11 AM | Show all posts
utk 1 - guna regexp.. kalu dia string ok. tp kalu dia campur int / special character lain mmg false...

utk 2 - pening gak ni.. apsal tak buat Date Picker jer...

utk 3 - yg ni aku tak paham apa yg ko nak

[ Last edited by  tengkubasri at 28-2-2008 02:13 AM ]
Reply

Use magic Report

Post time 28-2-2008 09:25 AM | Show all posts
tuk validate tuh ko pakai je javascript..berlambak lam internet...try test code2 tu..sure leh buat..
pasal date tuh..cam tengkubasri cakap..better pakai date picker je...sng..
Reply

Use magic Report

 Author| Post time 28-2-2008 02:51 PM | Show all posts
k thanks semua..data picker apa? bleh x terangkan skit...x prnh gna r...bila main ngan date jd pening skit..
yg ke 3 tu...cthnya makanan kan ada expired date..cthnya makanan tu expired dia tinggal 5 hari lg...bila pekerja login jer dia akn btau yng makanan tu dh nk expired tinggal 5 hari...ssh lh x plain..huhuu...
Reply

Use magic Report

Follow Us
You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

7-1-2025 06:21 AM GMT+8 , Processed in 0.090738 second(s), 19 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list