I have input:
<input id="id_nome" name="nome" type="text" class="form-control input-style" style="text-transform: uppercase" autofocus required>
I have the following function in Jquery:
$(function () {
$('.form').submit(function () {
//serializando os campos do formulário
var dados = jQuery(this).serializeArray();
var obj = dados;
alert(JSON.stringify(obj));
return false;
});
});
Although the data is uppercase in the input, in the JSON that is displayed in the alert it is small. How do I convert it to upper case?