Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

hasFocus or Check Focus, etc. ?

Avatar

Former Community Member
Noob here :)

I am being asked if I can have a button that will remove a row in a table that has focus/highlighted.

Is there a way to use a hasFocus or another method in order to see what row/object has focus on the form?



Thank you so much for your help!!!

Sylvia
1 Reply

Avatar

Former Community Member
You could use the method getFocus:

The form object that currently has the input focus, or null if no form object has the input focus.

Reference_Syntax.getFocus()



Diego.