I have two inputs when you type the upper one it writes the bottom one same time. I have a letter i
and its different from letter ı
but in English they have same capital letter I
so I wrote the following code to address this:
$(".buyuk").on("keypress", function(event) {
event.preventDefault();
if (event.which == 105)
$(this).val($(this).val() + "İ");
else
$(this).val($(this).val() + String.fromCharCode(event.which).toUpperCase());
});
After you write the word when you want to edit the word from middle it adds the letter to end. For example, I typed moitor
but when though I expected the output to be monitor
, it became moitorn
instead.