How do I find out which DOM element has the focus in jQuery?
I have two buttons in my HTML. On click of one, I want to find out which selector it serves. On clicking another, it should display which element is used. How can I achive this using jQuery?
The selector I want to show is :focus.
|
The element I want to show is button.
|