Answer the question
In order to leave comments, you need to log in
How to make the class hiding work when if ($(window).width() > 960)?
There is JS
$(window).resize(function(){
// Hide mobile menu etc on window resize
if ($(window).width() > 960) {
$('.mobile_menu_wrapper').hide();
}
});
Answer the question
In order to leave comments, you need to log in
Like this for example:
$(function () {
$(window).resize(function(){
console.log($(window).width());
if ($(window).width() > 960) {
$('.mobile_menu_wrapper').hide();
} else {
$('.mobile_menu_wrapper').show();
}
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question