JSFiddle - React, Tailwind, and code Playground

HTML

<label>
    <p><input type="search_name" type="text" /><br></p>
    <ul id="names">
        <li>Alex Garret</li>
        <li>Billy Garret</li>
        <li>Dale Garret</li>
        <li>Ashley Garret</li>
    </ul>
</label>

CSS

ul
{
    list-style: none;
    margin: 0;
    padding: 0;
}


.highlight
{
    backgroundColor: yellow;
}

JavaScript

$('#search_name').keyup(function(){
    search_name = $(this).val();
    $("#names li:contains('" + search_name + "')").css('backgroundColor', 'yellow');//addClass('highlight');
});