[ad_1]
The checked attribute sets the default state, not the current state.
Modify the checked property (with .checked = true) instead.
5
[ad_2]
solved setAttribute(“checked”, “checked”) only works one time
[ad_1]
The checked attribute sets the default state, not the current state.
Modify the checked property (with .checked = true) instead.
5
[ad_2]
solved setAttribute(“checked”, “checked”) only works one time