I have several inputTextBoxes, and I use document.activeElement to handle changes to the values of those input boxes that are called by the "change ()" function of the inputBox element.
the problem is that I change the value of one of the input boxes and then select another input field ... the function will receive the document. activeElement of the new input will not work ... how to make the function "do you know that the one that changed was the previous one?"
In the item handler, the change()keyword thiswill refer to the item just modified.
change()
this
$('#foo').change(function() { alert(this.id); // "foo" });
!
:
editBoxAtual = document.activeElement;
editBoxAtual = this;
Source: https://habr.com/ru/post/1750031/More articles:С++: Неизвестный размер указателя при прямом объявлении (ошибка C2036) - c++Improving SQL Server 2005 query performance - performancehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1750028/minimum-set-of-delphi-2010-files-to-move-to-a-svn-repository-for-compiling&usg=ALkJrhiRBdw6Az06crcb52gN6ZL3hIN44Qquestion about rss feed application - javaWhere to start with multi-threaded programming using C ++? - c ++Experience with direct data access components - mysqlВ Java почему нужно поставить скобки перед именем aray? - javaИспользуя jQuery animate(), если элемент с нажатой клавишей "", функция все равно должна возвращать значение false? - jqueryManaging resource closures in a servlet container - javaMercurial: Share the repo without putting it on the server? - mercurialAll Articles