我只是想知道是否有任何方法可以将 id 分配给 JSON 中的复选框,以便我可以在 JQuery 中使用此 id 以确保在选中/选中复选框时我正在采取一些行动。此复选框是使用 JSON 创建的。如果有一种方法可以为创建的复选框分配 id,那么在选中复选框时使用 JQuery 并分配“侦听器”类型的操作会更容易。all i want to do is that, when the checkbox with the label 'I would like to provide input' is selected, i would like to display a textbox for the user to enter the input path. 如果选中带有“我不想提供输入”标签的第二个复选框,则不显示任何文本框。
"window6": {
"true": {
"label": "I would like to provide input",
"isEditable": "false",
"name": "check_1",
"type": "checkbox"
},
"false": {
"label": "I would not like to provide input",
"isEditable": "false",
"name": "check_2",
"type": "checkbox"
}
},