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 can change it by .contents()
$('.yourElement').contents()[0].data = 'New Data';
where in your case the "[0].data" is your text data