javascript set contenteditable element code example Example: js change contenteditable value element.setAttribute("contenteditable", false);