jquery check if screen size
snippet in javascript

jquery check if screen size

user2877

if ($(window).width() < 960) {
   alert('Less than 960');
}
else {
   alert('More than 960');
}