I am trying to REAL prevent a DOM element from losing focus. I've read some solutions from here e.g.:
But there are only sneaky solutions that (RE)set focus on an element again and again. But when testing this solutions in fiddle i just write simnple:
$('input').on('focusout', function() {
console.log('focus lost');
});
It shows me that element is losing focus.
So my question is: is possible to REAL prevent an element from losing focus? something like this?:
$('input').on('focusout', function(e) {
e.preventDefault()
});
<--this not working but i want to get this result in any other way