3 ms·
> jQuery gets out of the way, the class gets syntax-highlighted, and .focus() can’t create an NPE. So if your selector is wrong, you won’t actually know, becau
by josteink 6y ago
> jQuery gets out of the way, the class gets syntax-highlighted, and .focus() can’t create an NPE.
So if your selector is wrong, you won’t actually know, because your code will pretend to run along just fine.
I personally consider that a con, not a pro, and one of my (many) reasons not to use jQuery.