JSFiddle - React, Tailwind, and code Playground
by dubeynee
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>
<label id="test" style="background-color:yellow"> <a href="#" onclick="myfunc(this.id)" id="0099878">9999987699999999999</a>
</label>
<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();
$('[id*="test"]').text("ddaadfa");
// OR $('#test').html(l);
});