jQuery validation engine, jquery inline form validation
Posted: August 12, 2009 at 10:49 am | Tags: JQuery, resourcejQuery validation engine ဟာ Form Validation အတြက္ JQuery Javascript Framework အတြက္ Plug-in ပဲျဖစ္ပါတယ္။ Plug-in မွာ ႀကိဳတင္သတ္မွတ္ထားတဲ့ Rule ေတြနဲ႕ အလုပ္လုပ္ပါတယ္ ။

- optional: Special: empty ျဖစ္ေနတဲ့ Field တခုတည္းအတြက္သာ
- required: ျဖည့္ဖို႕လိုအပ္တဲ့ Field
- length[0,100] : x မွ x စာလံုးအေရအတြက္ အတြင္းသာ ခြင့္ျပဳသည္
- minCheckbox[7] : Set the maximum checkbox autorized for a group
- confirm[fieldID] : အျခား field နဲ႕ တူမတူ (ie:confirm password)
- telephone : Match telephone regEx rule.
- email : Match email regEx rule.
- onlyNumber : Number မ်ားသာ
- noSpecialCaracters : special character မ်ားလက္မခံပါ (eg. $ _ – )
- onlyLetter : Letters only
- date : Invalid date, must be in YYYY-MM-DD format
မိမိစိတ္ႀကိဳက္ Validation Rule လဲ သတ္မွတ္ႏိုင္ပါတယ္ -
"telephone":{
"regex":"/^[0-9-()]+$/",
"alertText":"* Invalid phone number"},
Demo
Internet Exploder 6 & 7, Firefox 3+, Safari 4, Chrome 1+ တို႕ျဖစ္ စမ္းသပ္ၿပီးပါျပီ ။