JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>jitender</li>
<li>sumit</li>
<li>santosh</li>
</ul>
JavaScript
(function () {
$('ul').ready(function () {
$('li').each(function () {
if ($(this).text() == 'jitender') {
$(this).text("Fron End Developer");
}
if ($(this).text() == 'sumit') {
}
if ($(this).text() == 'santosh') {
}
});
});
})();