Описание
Members Thanked: 16 times
$(
'option'
).each(
function
() {
var
text = $(
this
).text();
if
(text.length > 10) {
text = text.substr(0, 4) +
'...'
+ text.substr(-4);
).text(text);
}
})