Can anyone help me with a JavaScript code that will locate a hidden div by its Id and change the style from display:none; to display:block; ? HTML:
<div id="author-info" style="display:none;">by Jane</div>
Every post on my website begins with this HTML code. How can I display or show the element based on its Id? Thank you!