media breakpoints in jquery 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
}
});