JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <body>
        <input type="text" id="change1"/>
        <br/>
<label id="test" style="background-color:yellow"> <a href="#" onclick="myfunc(this.id)" id="0099878">9999987699999999999</a>
                   </label>


    </body>
</html>

JavaScript

$('#change1').click(function(){
    var l = $(this).val();
    $('#test').text("ddaadfa");
    // OR $('#test').html(l);
});