media query breakpoints in jquery window resize code example
Example: if media query jquery
$(window).resize(function() {
if ($(this).width() < 1024) {
// your code
} else {
// your code
}
});
$(window).resize(function() {
if ($(this).width() < 1024) {
// your code
} else {
// your code
}
});