How To Use Media Query Using Jquery

140

How To Use Media Query Using Jquery -

if (window.matchMedia('(max-width: 768px)').matches)
{
    // do functionality on screens smaller than 768px
}

Comments

Submit
0 Comments