【问题标题】:Parsley checkbox validation欧芹复选框验证
【发布时间】:2018-05-27 11:31:28
【问题描述】:

我有多个复选框,至少需要选中它们。但出于某种原因,Parsley 不承认它是一种验证。

<div class="form-check"><input name="tags" class="form-check-input" type="checkbox" value="" id="spelling"><label class="form-check-label" for="spelling" required="">Spelling</label></div>
<div class="form-check"><input name="tags" class="form-check-input" type="checkbox" value="" id="grammatica"><label class="form-check-label" for="grammatica">Grammatica</label></div>
<div class="form-check"><input name="tags" class="form-check-input" type="checkbox" value="" id="woordenschat"><label class="form-check-label" for="woordenschat">Woordenschat</label></div>
<div class="form-check"><input name="tags" class="form-check-input" type="checkbox" value="" id="begrijpend_lezen"><label class="form-check-label" for="begrijpend_lezen">Begrijpend Lezen</label></div>
<div class="form-check"><input name="tags" class="form-check-input" type="checkbox" value="" id="opdrachten"><label class="form-check-label" for="opdrachten">Opdrachten</label></div>

我找不到任何关于如何正确执行此操作的好例子。

【问题讨论】:

    标签: html forms validation parsley.js


    【解决方案1】:

    http://parsleyjs.org/doc/examples/simple.html,复选框组已经完成了确切的事情。

    【讨论】:

      猜你喜欢
      • 2014-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-29
      • 1970-01-01
      • 1970-01-01
      • 2023-03-15
      • 2019-02-12
      相关资源
      最近更新 更多