I have a some ASP.NET table rows that are initially invisible. On a click I am running a Javascript function that is changing the style of the table rows showing it or hiding it.
To show it :
document.getElementById(id).style.display = "";
To hide it :
document.getElementById(id).style.display = "none";
and this works.
The problem is that I need to make some filtering with the contents of the row if and only if the row is visible.
In code behind the style keeps state as was designed and does not takes the current state.
What will be the best approach to get the information if the element is visible or not?