Код: Выделить всё
jQuery('.getcatdishes').change(function(){
var valu = jQuery(this).val();
var text = jQuery(this).find('option:selected').text();
text += ' (current)';
jQuery(this).find("option:contains('current')").each(function(){
var txt = jQuery(this).text().replace('(current)','')
jQuery(this).text(txt);
});
jQuery(this).find('option:selected').text(text);
});Код: Выделить всё
option 1
option 2
option 3
Спасибо, ребята!
Подробнее здесь: https://stackoverflow.com/questions/686 ... -in-jquery