sS htrickcheckboxWithText(S name, S text, bool checked, O... params) { S id = randomID(); ret hhidden(name, checked ? "1" : "0") + hcheckbox(null, checked, paramsPlus(params, +id, onclick := "this.previousElementSibling.value=this.checked ? 1 : 0")) + " " + hlabelFor(id, htmlEncode2(text)); } sS htrickcheckboxWithText(S name, S text) { ret htrickcheckboxWithText(name, text, false); }