我想設置設置jquery驗證的自定義信息。我的表單代碼:它總是給msg:「你沒有回答所有必填字段」。但我想改變。jquery驗證信息更改(自定義信息設置)
<form id="addproductform" method="post" action="" role="form">
<div class="col-md-6">
<div class="form-group">
<label>Name </label>
<input data-validation="required" data-msg="Please enter your first name" class="form-control" placeholder="Enter name">
</div>
</form>
jQuery的: -
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.2.8/jquery.form-validator.min.js"></script>
<script>
$.validate({
decimalSeparator: ','
});
</script>
Vijay完成.. thnx –
這就是偉大@AnshuPratapYadav ...':) '! – vijayP