$ ('*'). not ('input') doesn't work for password fields in chrome?

I select all tags that are not input tags to bind a hotkey.

$('*').not('input').bindHotKey(blah);

However, this seems to exclude the password field in chrome. those.:<input type="password"/>

+3
source share
1 answer

Try to select only the descendants of the element body:

$('body *').not('input').bindHotKey(blah);

Demo

Update: But it even works with $('*'). Check out this script . Without noton page 11 elements, s not, 10.

+2
source

All Articles