Home › Forums › JavaScript › Hide element onclick but only when window is bellow 960 › Reply To: Hide element onclick but only when window is bellow 960
December 3, 2013 at 10:15 pm
#157731
sadunaresh
Participant
I have edited below part
//SLIDE UP WHEN MOBILE TAB IS CLICKED ONLY, NOT WHEN DESKTOP NAV IS CLICKED
$("#nav-tabs-list li").click(function() {
if(browserWidth<990){
$("#nav-tabs-list").slideUp();
}
});
included a condition for list items to slide up only when browser width is less than 990px..
hope this is what you expected…