M
M
My joy2016-04-09 22:45:09
JavaScript
My joy, 2016-04-09 22:45:09

Chrome Devtools swearing at jQuery when trying to type in input?

He does not even swear, he just pauses the execution, and shows a piece of jquery that he does not like. No errors are thrown in the console itself. When trying to enter text into a regular text field while devtools is open. screenshot attached. The error occurs not the first time, I do not understand just why. in a script I work simply:

<input id="myinput" onkeydown="logme()">

var logme = function() {
    console.log($('#myinput').val().length);
}


9350505.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-04-09
@t-alexashka

https://jsfiddle.net/q0jj9rjs/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question