- 1
- 2
- 3
- 4
- 5
- 6
- 7
var
testNameDiv = $('div[class^=name]'),
testName = testNameDiv.find('span');
for (var i = testName.text().length - 1; testName.height() > 22; i--) {
testName.text(testName.text().substr(0, i - 1));
}
3_dar 04.10.2016 22:16 # 0
guest 04.10.2016 22:22 # 0