基于Bootstrap表单验证

GitHub地址:https://github.com/chentangchun/FormValidate

基于Bootstrap表单验证

 

使用方式:

1.CSS样式

.valierror {
    border-color: red !important;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #d15b47;
}

.tooltip-inner {
    background-color: #d15b47;
}

 

<form id="form">
       <input type="text" class="form-control" name="Phone" data-
       <input type="text" class="form-control" name="Name" data-            
            valiType="required">
</form>

<script>
        var $form = $("#form");
        var isVali = $form.FormValidate();

</script>    

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-05-27
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2021-09-28
  • 2021-08-09
  • 2021-11-08
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案