1
Galera created a function that converts the text to lowercase inside the input, the problem is that when I enter an input with value, and having change something the cursor jumps to the end. Someone knows how to fix this?
My code:
// Converte minusculas em maiusculas
function up(lstr) {
var str = lstr.value;
lstr.value = str.toUpperCase();
}
<input OnKeyUp='up(this)' type='text' class='form_campos form_campos_simples' id='inputNormal' name='historico' value="TESTANDO O TEXTO">
try adding in javascript: formula_name.historico.Focus(); unless formula_name is configured in the form tag Ex: <form name="formula_name" acrion="">
– denis
could you give me a practical example? I didn’t quite understand that.
– Hugo Borges
It wouldn’t be enough to use CSS?
text-transform: lowercase;
?– Sergio
did not work, look ai:http://jsfiddle.net/f3vpyhnk/16/
– Hugo Borges