I want to show/hide the section depending on the window width. I tried:
$(function(){
"use strict";
if($(window).width() > 600) {
$("section").hide();
}
else {
$("section").show();
}
});
HTML:
<section>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
</section>
But im not seeing the section hide. What am I doing wrong?