jquery screen size code example
Example 1: jquery check if screen size
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
Example 2: get page resolution jquery
$( window ).width()
Example 3: jquery if screen size
$(document).ready(function() {
if($(window).width() >= 1024) {
$('a.expand').click();
}
});
Example 4: get width of div jquery
$("#divId").width();