skip to Main Content

The assigned innerHTML results in a different structure

I tried assigning <p><div></div>Hello</p> to innerHTML, but it resulted in a different structure: <p></p><div></div>Hello<p></p>. Is this a bug or expected behavior? Can't a <div> element be placed inside <p> element? Code: const div = document.createElement("div") div.innerHTML = "<p><div></div>Hello</p>"; console.log(div.innerHTML); Expected…

VIEW QUESTION

Javascript – Schedule checkbox to check/uncheck background automatically

Below script was working fine yesterday, and today I have got an error: Exception: This script has too many triggers. Triggers must be deleted from the script before more can be added. function chEcked() { SpreadsheetApp.getActive().getSheetByName('To-do').getRange("F1").setValue(true); SpreadsheetApp.getActive().getSheetByName('OverDate').getRange("F1").setValue(true); } function unchEcked()…

VIEW QUESTION
Back To Top
Search