How do you add a 'checked' attribute to a checkbox via JavaScript when selecting it

前端 未结 0 1073
长发绾君心
长发绾君心 2021-01-31 14:32

Right now, for some reason, when I select a checkbox - it won\'t add a \'checked\' attribute. I\'m wondering if I can do anything with JavaScript that would do that for me.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题