I am trying to append a javascript variable within one of my html tags however it does not work at all even though the variable has a value. I am grabbing the variable through local storage so I am not sure if it is because of that or not? Any help would be greatly appreciated!
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<h3 id="welcome"></h3>=
<script>
var name = localStorage.getItem('name')
document.getElementById("welcome").value = name;
</script>
</li>
<li>
<a href="#">Dashboard</a>
</li>
<li>
<a href="#">Shortcuts</a>
</li>
<li>
<a href="#">Overview</a>
</li>
<li>
<a href="#">Events</a>
</li>
<li>
<a href="#">About</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</div>
</div>