首页 > 网络编程 > JavaScript > javascript技巧 > DHTML form validation 2007-03-13 00:00:00 作者: DHTML form validation DHTML form validation DHTML form validation First name: Required = 1 Last name: Required = 1 Email: Required = 1, mask = email Age: Required = 1, mask = numeric Code(SSSS-NN): Required = 1, freemask = SSSS-NN i.e four letters and two digits Zip code(NNNNN-NNNN): Required = 1, mask = zip Domain: regexpPattern="/\b[A-Z0-9.-]+\.[A-Z]{2,4}\b/gi" Country Norway Denmark Sweden Finland France United States Germany Required = 1 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]