I show certain data in different layers based on user input parameters. The layers are shown as Link list. Each layer shows different data. When user changes input and presses submit again, the current layer has to be refreshed. I can link the submit event to forms in all layers. But I need to find active layer to give a condition for the link.
The primary question is how do I find the active layer rather the layer user is currently seeing.