Cytat(kamil4u @ 11.01.2011, 14:45:03 )

W textarea nie zmienisz wielkości liter tylko do fragmentu....
Zmienisz, mam kod:
Kod
var start = 5;
var end = 10;
for (i = 0; i < 100; i++) {
var textArea = document.getElementsByTagName('textarea')[i];
var text0 = textArea.value.substring(0, start);
var text1 = textArea.value.substring(start, end).toUpperCase();
var text2 = textArea.value.substring(end);
textArea.value = text0 + text1 + text2;
textArea.focus();
}
a chce aby owe zmiany były tylko w zaznaczonym tekście tak jak tu:
http://www.mozilla.org/editor/midasdemo/