SyntaxFix
Write A Post
Hire A Developer
Questions
$(':focus')[0] will give you the actual element.
$(':focus')[0]
$(':focus') will give you an array of elements, usually only one element is focused at a time so this is only better if you somehow have multiple elements focused.
$(':focus')