For example: I need to use js to add a selected effect to the button.
Why can you directly use op.checked = true? to add the selected effect in js? Why don't you need to add a style in the middle? If it is color, it is like this op.style.color = "red" ?
Add css attributes after style. checked is an attribute of input, so there is no need to add style.
In fact, it’s the same if you write it directly in the html tag,
You write directly
It must be ineffective, one is the attribute of tag and the other is style