문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 | |||
|
javascript:jquery:validation [2014/02/28 10:38] kwon37xi |
javascript:jquery:validation [2014/02/28 11:29] (현재) kwon37xi [RegEx 정규 표현식] |
||
|---|---|---|---|
| 줄 4: | 줄 4: | ||
| ===== RegEx 정규 표현식 ===== | ===== RegEx 정규 표현식 ===== | ||
| * [[http:// | * [[http:// | ||
| - | $.validator.addMethod(" | + | $.validator.addMethod(" |
| return regexpr.test(value); | return regexpr.test(value); | ||
| }, " | }, " | ||
| 줄 14: | 줄 14: | ||
| required: true , | required: true , | ||
| //change regexp to suit your needs | //change regexp to suit your needs | ||
| - | | + | |
| minlength: 5, | minlength: 5, | ||
| maxlength: 8, | maxlength: 8, | ||