【问题标题】:Bootstrap Validator.js and the Cancel buttonBootstrap Validator.js 和取消按钮
【发布时间】:2016-02-12 17:20:18
【问题描述】:

尝试引导验证器 (http://1000hz.github.io/bootstrap-validator/),它非常漂亮,但如果您点击“取消”按钮,我不知道如何让它忽略验证。我在“取消”按钮上尝试了 CausesValidation="false",但无论如何都会触发验证。任何想法表示赞赏。

【问题讨论】:

    标签: asp.net bootstrapvalidator


    【解决方案1】:

    将取消按钮类型从 submit 更改为 button

    如果按钮类型type="submit"fiddle example

    如果按钮类型type="button" fiddle example

    Referencegithub

    【讨论】:

      猜你喜欢
      • 2016-02-02
      • 2019-07-14
      • 2016-05-09
      • 2017-08-16
      • 1970-01-01
      • 1970-01-01
      • 2021-12-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多