JSFiddle - React, Tailwind, and code Playground

HTML

<input  id="term"/> 

<ul id="ul-id" >

    <li id="li-id-1"> hello budy this is really simple stuff </li>
    <li id="li-id-2"> this is it</li>
    <li id="li-id-3"> there is something here</li>
    <li id="li-id-4"> plain text file</li>

</ul>
<br>
<div id="text"></div>

JavaScript

$('#term').change(function (i) {
    $('#text').html("Lol:" + JSON.stringify(arguments));
    console.log(i);
})