JSFiddle - React, Tailwind, and code Playground

by Kevin Faulhaber

HTML

<ul id="results">
    <li><a href="www.google.com">test123</a></li>
    <li><a href="www.google.com">test123</a></li>
    <li><a href="www.google.com">test123</a></li>
</ul>

JavaScript

$( "a" ).on('click', function(e){
    e.preventDefault();
    $('#results').trigger('click');
});

$('#results').on('click', function(e){
    $( this ).slideUp();
});