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