<li>Red (+100 руб.) </li>
if (!String.prototype.replaceLast) {
String.prototype.replaceLast = function(find, replace) {
var index = this.lastIndexOf(find);
if (index >= 0) {
return this.substring(0, index) + replace + this.substring(index + find.length);
}
return this.toString();
};
}
$('li').each(function() {
var text = $(this).text().replaceLast('(', '<span>(');
text = text.replaceLast(')', ')</span>');
$(this).text(text);
});