This question is locked. New answers and comments are not allowed.
Hi,
I am using the telerik combobox. I have written the following code to prevent all keyboard input into the combobox:
//Species-input is the combobox control
$("input[name='SpeciesId-input']").keydown(function (event) {
event.preventDefault();
return false;
});
While this prevents all numeric, characters, special symbols, it still fires the keyup and keydown events (when I use the up and down arrows) and moves to the next/previous item in the combobox. I need to prevent these events from being fired as well. Could you please help me with this?
Thanks,
Anthony
I am using the telerik combobox. I have written the following code to prevent all keyboard input into the combobox:
//Species-input is the combobox control
$("input[name='SpeciesId-input']").keydown(function (event) {
event.preventDefault();
return false;
});
While this prevents all numeric, characters, special symbols, it still fires the keyup and keydown events (when I use the up and down arrows) and moves to the next/previous item in the combobox. I need to prevent these events from being fired as well. Could you please help me with this?
Thanks,
Anthony