Javascript to check whether a checkbox is being checked or unchecked

前端 未结 7 1192
轮回少年
轮回少年 2020-11-29 06:37

I have a javascript routine that is performing actions on a group of checkboxes, but the final action I want to set the clicked checkbox to checked or unchecked based on if

7条回答
  •  醉酒成梦
    2020-11-29 07:13

    You should be evaluating against the checked property of the checkbox element.

    for (i=0; i

提交回复
热议问题