I want to change through style = "background-color:" directly, without causing
document.getElementById(this.id).style.backgroundColor = "#ffffff"; and writing it directly in the context of this, in principle, it works, that is, for example, you can do so
<input type="text" id="old_id" style="background-color: #ffb3b3" onkeyup="input_fn(this)"> and then do
function input_fn() {this.id = "new_id"} and everything works fine in chrome, the id of the element will change the value, but here in the VERY long list of this I haven’t found anything like style , can anyone tell me where it’s hidden there ??
function () {this.id = "new_id"}and where is it called? why do sodocument.getElementById(this.id)if you already have this ? - Grundy