jQuery mobileValidate Plugin Demos
Type 1
Type 2