javascript min-width and max-width conditions in javascript 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
}
});