I have created a function that converts the text to lowercase inside the input, the problem and that when I inform an input with value, and having to change something the cursor jumps to the end. Does anyone know how to solve 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">