【发布时间】: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