aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.c b/html.c
index dda387a..af054a7 100644
--- a/html.c
+++ b/html.c
@@ -1451,6 +1451,7 @@ xs_html *html_checkbox(const char *form_name, const char *label, int flag)
xs_html_sctag("input",
xs_html_attr("type", "checkbox"),
xs_html_attr("name", form_name),
+ xs_html_attr("id", form_name),
xs_html_attr(flag ? "checked" : "", NULL)),
xs_html_tag("label",
xs_html_attr("for", form_name),