jquery/js2ndtimeissue

How to fix jquery/javascript value is not showing 2nd time in html

by vptechworld

HTML

<div>
	<p>Copyright &copy;
            First Time<span id="year"></span> <br> Second Time<span id="year"></span>
          </p>
	</div>

JavaScript

// Get the current year for the copyright
    $('#year').text(new Date().getFullYear());