Answers for "media jquery"

1

How To Use Media Query Using Jquery

if (window.matchMedia('(max-width: 768px)').matches)
{
    // do functionality on screens smaller than 768px
}
Posted by: Guest on July-08-2021
0

if media query jquery

$(window).resize(function() {
  if ($(this).width() < 1024) {
	// your code
  } else {
    // your code
  }
});
Posted by: Guest on April-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language