On Focus / On Blur for multiple inputs

On Focus / On Blur for multiple inputs

On a form, I want to get a div to change background color when a user is in either the password or password confirm input fields.

I can get it to work individually, but the problem is that I need to be able to capture the active element and then check if it's either password or password confirm.  If either is active, I can use the .css method to set the background color or if both are not active, I can reset the background color.

I'm struggling with figuring out what element is active.

Any ideas?

Thanks!!