say we have simple asp.net repeater, in a row we have one checkbox, one label (database-id of the record) and not visible (used for postback) and one text (in a tabelcell)
现在我想要让它像在Windows中一样,如果您点击文本,复选框应该被选中或取消选中。
有人有这个链接或解决方案吗?也许已经使用了jQuery?
Edit: as i said, it is a asp.repeater. and the table is for layout, so using the checkbox.text property is not designable (e.g. line wrap) the ids of the checkbox and text are dynamically added/changed on rendering of the repeater. therefore the label solution does also not really work.