I have been experimenting with toggling table rows using jquery. Initially, the state is hidden
This feature is functioning properly
$('.table tr.items.' + name).each(function() {
$(this).show();
});
Furthermore, this snippet of code is working flawlessly
$('.table tr.items.' + name).each(function() {
$(this).show();
});
However, when I implement the following code:
$('.table tr.items.' + name).each(function() {
$(this).toggle();
});
In the former invocation, the rows are displayed, but in the latter instance, they remain visible. Despite the style being set to "display: table-row;" in the second call. Are you able to provide any insights or solutions?