M
M
Maxim Zolotoy2018-02-24 19:58:27
JavaScript
Maxim Zolotoy, 2018-02-24 19:58:27

How to cancel the movement of the cursor in the input when clicking on the arrows?

I tried to do like this but it doesn't work. Maybe there is some way?

if(event.keyCode == 38) {
  event.preventDefault();
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Zolotoy, 2018-02-24
@spacenear

Question removed) I just hung up on the keyup event so it didn’t work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question