Jquery to display only specific dates and hide the others
I want to know how to add jquery to this following pattern where 2015 needs to be displayed as none and adding 2020 should not let anything get affected. I tried to use n-th child and displayed none for all dates from 2015-1990 but then i realized if i add 2020 2016 would get affected
2019 2018 2017 2016 2015
<div class="article-list mb-3 archive-list">
<ul>
<li><a href="#">2019</a></li>
<li><a href="#">2018</a></li>
<li><a href="#">2017</a></li>
<li><a href="#">2016</a></li>
<li><a href="#">2015</a></li>
</ul>
</div>