textcontent jquery example
Example 1: jquery set text of h1
$('#id').text("New Text");
Example 2: change ul index value with innertext
document.getElementsByClassName('buddyName')[3].innerHTML= "Aragorn";
$('#id').text("New Text");
document.getElementsByClassName('buddyName')[3].innerHTML= "Aragorn";