Forum Discussion
ZsoltOlah
9 years agoSuper Hero
Entry Text WITHOUT Losing Focus
Hi all,
Is it possible to detect/trigger entry text content WHILE the user is typing? And not wait until the box loses focus?
Here's the scenario: submit button is hidden. Text entry is empty. ...
ClareSmith-fb7f
4 years agoCommunity Member
Hi Joke,
I found the jQuery written by Jillian quite useful and thought I would contribute by writing it in just javascript. Here is the code:
let inputs = document.getElementsByTagName('input');
function fnBlur(e) {
e.target.blur();
e.target.focus();
}
for (let index = 0; index < inputs.length; ++index) {
inputs[index].addEventListener("keyup",fnBlur)
}