jquery('.uabb-contact-error').each(function() { var text = $(this).text(); $(this).text(text.replace('Please accept the Terms and Conditions to proceed.', 'Acceptati termenii si conditiile')); }); $('span').each(function() { var text = $(this).html(); $(this).html(text.replace('Please accept the Terms and Conditions to proceed', 'I love this text')); });