【发布时间】:2021-11-20 05:11:02
【问题描述】:
这段代码写在车把中,我正在使用带有 nodejs 的 mongodb,我想编辑管理配置文件,我需要在其中选择值复选框,我们将从数据库中获取需要比较并选中复选框
<pre>
<div class="form-group">
<label class="control-label text-bold mr-6" style=" ">User Management
<input type="checkbox" name="role" value="User Management" class="chk" />
</label>
<label class="control-label text-bold mr-6" style=" ">Payment Management
<input type="checkbox" name="role" value="Payment Management" class="chk" />
</label>
<label class="control-label text-bold mr-6" style=" ">Booking Management
<input type="checkbox" name="role" value="Booking Management" class="chk" />
</label>
<label class="control-label text-bold mr-6" style=" ">Cancellation Management
<input type="checkbox" name="role" value="Cancellation Management" class="chk" />
</label>
<label class="control-label text-bold mr-6" style=" ">Club Management
<input type="checkbox" name="role" value="Club Management" class="chk" />
</label>
<label class="control-label text-bold mr-6" style=" ">Report Management
<input type="checkbox" name="role" value="Report Management" class="chk" />
</label>
<label class="control-label text-bold mr-6" style=" ">Static Pages Management
<input type="checkbox" name="role" value="Static Pages Management" class="chk" />
</label>
</div>
</pre>
【问题讨论】:
标签: jquery node.js ajax mongodb