Hi, I want get the value of the text including the character on the keydown event.
$(".searchfield").keydown(function(e) {
if (e.which >= 32 || e.which < 127) {
var c = String.fromCharCode(e.which);
callSearch($(this).val() + c));
}
});
It works good for characters, numbers and all the essential characters. 32-127 ASCII range.
I am not sure if this will work if the textbox has a multilingual input. Non english characters.
Can someone share their experience please?
Thanks,