How do you detect which form input has focus using JavaScript or jQuery?
From within a function I want to be able to determine which form input has focus. I\'d like
You can use this
It triggers the function when the input is focused.