jquery - javascript - document.activeElement -


itemprop = "text">

I have some inputTextbox and I am using document.activeElement to handle the values ​​of the changes in the documents that are "change () "The function of the input box element.

The problem is that when I change the value of one of the input boxes and then click on any other input box ... the function will get the document. The API will not be an Element of the new inputbox and the job ... How can the "know" the function that the one who had changed was the last one?

change of an element () in the handler, the keyword will reference the element that was changed now.

  $ ('#foo'). Change (function () {alert (this.id); // "foo"});  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -