I've got a class, lets call it "responsive-table," where I have a media query to remove visibility when you reach a certain threshold on your resolution:
.responsive-table { display: block; }
@media screen and (max-width: 600px) {
.responsive-table { display: none; }
}
When on a screen less than 600px, there is a button to toggle the visibility of this table that has a click action:
$(".responsive-table").toggle();
However once this is executed, and lets say you toggle the table on, then off, when the window is expanded to a higher resolution than 600px, .responsive-table seems to ignore the media queries of display: block; where it should become visible beyond this threshold of 600px viewport.
toggle()use inline style which is preponderant over style set for class