jQuery Validation 플러그인을 이용한 회원 가입폼 체크
회원 가입 폼 체크에서 jQuery Validation 플러그인을 활용하면 폼 체크를 비교적 간단히 할 수 있다. <script type=”text/javascript”> $(function() { $.validator.setDefaults({ onkeyup:false, onclick:false, onfocusout:false, showErrors:function(errorMap, errorList){ if(this.numberOfInvalids()) { alert(errorList[0].message); } } }); $(‘form[name=fmember]’).validate({ …