I would like to change the text of a HTML element but preserve the rest of the inner html with jQuery.
For instance:
Some
My generic version:
let button = $('#yourElement'); button.html(button.html().replace(button[0].innerText, "New Text"));