0
내가 회계 코드 검증의 기능에 대한 몇 가지 문제가지고있어, 내가 부트 스트랩 및 JQuery와의 안돼서, 인터넷에 대한 몇 가지 검색을, 나는 이런 식으로 뭔가 시도 :jQuery를 회계 코드 검증
<script type="text/javascript">
jQuery.validator.addMethod("codfiscale", function(id) {
var regex = /[A-Z]{6}[\d]{2}[A-Z][\d]{2}[A-Z][\d]{3}[A-Z]/;
return value. match(regex);
}, "Please insert a valid italian identification number");
</script>
을 어떤 도움을 위해
<form id="form">
<div id="form" class="form-group col-md-4 col-md-offset-4">
<label for="id">Codice fiscale:</label>
<input type="text" name="id" class="codfiscale"/>
</div>
<div class="form-group col-md-4 col-md-offset-4">
<label for="exampleInputPassword1">Password:</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="form-group col-md-4 col-md-offset-4" class="col-md-3">
<button type="submit" OnClick="codfiscale" value="id" class="btn btn-primary center-block">Submit</button>
</div>
</form>
감사 :
은 그리고 그 형태입니다! jquery.delegate.js, jquery.metadata.js :
시, Questi에서 4 플러그인 체를 예제를 사용하고 있다고 가정하면 ,, jquery.validate.min.js, form-validation.js – DarioS
리사이엄 오신 걸 환영합니까? – Vixed