I have created one html
template file for show sidebar.
I tried document.getElementById
for append dynamic html content but it's give me below error.
ReferenceError: "document" is not defined.
InformationTpl.html
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<div id="errors"></div>
</body>
</html>
Code.gs
var getElement = document.getElementById("errors");
getElement.html("<hr> Hii World !!!</hr>");
var html = HtmlService.createHtmlOutputFromFile('InformationTpl').setTitle("Attention").setWidth(300);
SpreadsheetApp.getUi().showSidebar(html);
Question : How do I get element from html
template and append some dynamic info in this ?
Thanks ! Help will be appreciated.