I would like to change the text of a HTML element but preserve the rest of the inner html with jQuery.
For instance:
Some
You'll need to add in a element and change the text of that element, e.g.:
Some text
Then, you can call from jQuery:
$("#foo").html("Other text");
And your result will effectively be:
Other text