User475983607 posted
Try what you told me but it did not come out
Your response is not specific enough to guess what "it did not come out" means.
I tested the code and the snippet works as expected. Meaning the <p>d</p> element is inserted within the <ul> element. Maybe you really want an <li>?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="content/jquery-ui-1.12.1/jquery-ui.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="Scripts/jquery-ui-1.12.1.js"></script>
</head>
<body>
<div class="t_title"><h4 class="estadistica">ESTADISTICAS MEDICAS</h4></div>
<ul id="id" class="interna menudoc"></ul>
<script type="text/javascript">
function hola() {
var template1 = '<li>d</li>';
document.getElementById('id').innerHTML = template1;
}
hola();
</script>
</body>
</html>