标签: javascript node.js html5 mongoose
如何将复选框的值从HTML传递给mongoose? Checked = true,unchecked = false
Checked = true
unchecked = false
const newSomething = { isTrue: req.body.isTrue //dosn't work with my HTML }
HTML:
<input type="checkbox" name="isTrue">