JSFiddle - React, Tailwind, and code Playground
HTML
<ol id="myAnchor">
<li><a id="zero-20" href="#" >0.00 - 20.00</a></li>
<li><a id="twenty-50" href="#">20.00 - 50.00</a></li>
<li><a id="fifty-80" href="#" >50.00 - 80.00</a></li>
<li><a id="eighty-100" href="#">80.00 - 100.00</a></li>
<li><a id="All" href="#">All</a></li>
</ol>
<ul class="box-content">
<li class="zero-20">13$</li>
<li class="twenty-50">23$</li>
<li class="fifty-80">60$</li>
</ul>
JavaScript
$(document).ready(function() {
$('#myAnchor li a').click(function(){
var change = $(this).attr('id');
$('.box-content .'+change).show();
$('.box-content .'+change).siblings().hide();
});
});