Answers for "jquery replace innertext"

3

jquery replace text

$('#id1 p').each(function() {
    var text = $(this).text();
    $(this).text(text.replace('Kate', 'Nef')); 
});
Posted by: Guest on January-09-2021
0

jquery set inner text

$(document).ready(function()
{
    $("#dvExample").text('I am new content of the div.')
});
Posted by: Guest on November-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language