2 回答
TA贡献1816条经验 获得超4个赞
只需添加checked
它
<input class="form-check-input" type="checkbox" name="doctype" value="offer" id="offer" checked>
TA贡献1784条经验 获得超9个赞
使用选中的复选框并在此处阅读
<form>
<article class="card-group-item">
<header class="card-header">
<span class="title">Document Types </span>
</header>
<div class="filter-content">
<div class="card-body">
<label class="form-check" >
<input class="form-check-input" type="checkbox" name="doctype" value="offer" id="offer" checked>
<span class="form-check-label">Offer</span>
</label> <!-- form-check.// -->
<button type="submit" class="btn btn-secondary btn-sm">Submit</button>
</div> <!-- card-body.// -->
</div>
</article> <!-- card-group-item.// -->
</form>
添加回答
举报