Currently, I am working on a project in asp.NET. The code-behind page is bound to a repeater control that populates a table on the webpage.
To maintain a clean look, I have hidden the table using CSS when it is empty. Now, my goal is to use jQuery to show the table once it has been filled by the repeater. However, I am encountering issues with this task. Below is a simplified example of what I have attempted:
$('#MyTable').change(function () {
$('#MyTable').show();
})
It is worth noting that I am utilizing a basic HTML table rather than an asp:Table, eliminating the need for the .ClientID workaround and preventing server-side manipulation. I have also experimented with placing the .change event on the repeater control itself, but unfortunately, the table remains hidden even after new rows are added.
If anyone could offer some guidance on a potentially straightforward solution to achieve my desired outcome, I would greatly appreciate it.