jquery change text

JavaScript
$("#my-button").attr("value", "Button Text");$('#id1 p').each(function() {
    var text = $(this).text();
    $(this).text(text.replace('Kate', 'Nef')); 
});BY LOVE
  $('#btnid').text('Show');$(yourElement).html("New text");
//sets yourElement innerHTML to "New text"
var text = $(yourElement).html();
//html() returns the text inside yourElement if you pass no parameters$('#id').text("New Text");.text("new text")
Source

Also in JavaScript: