Use jQuery to get the width of the window.
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
More Related Contents:
- How to count the characters in a input text [closed]
- jQuery 1.9 .live() is not a function
- How to bind fancybox to dynamic added element?
- How to add an object to an array
- JSFiddle code not working in my own page
- What is the $$hashKey added to my JSON.stringify result
- Download a div in a HTML page as pdf using javascript
- Jquery Event won’t fire after ajax call
- Get unique selector of element in Jquery
- How to get all selected values from ?
- Auto-refreshing div with jQuery – setTimeout or another method?
- Set content of iframe
- Uncaught ReferenceError: jQuery is not defined [duplicate]
- Export HTML page to PDF on user click using JavaScript
- Maximum call stack size exceeded on SetTimeout recursive function (Javascript) [duplicate]
- How to find if div with specific id exists in jQuery?
- How To Show And Hide Input Fields Based On Radio Button Selection
- jQuery AJAX polling for JSON response, handling based on AJAX result or JSON content
- Access CSS file contents via JavaScript
- Onclick reload the div only
- Catch only keypresses that change input?
- jQuery append() vs appendChild()
- Will $(window).resize() fire on orientation change?
- difference between parseInt() and parseFloat() [duplicate]
- How to add a onclick event to an element using javascript
- Test if an element can contain text
- Dynamically replace img src attribute with jQuery
- unable to load xml from external file using jQuery
- Screen Coordinates of a element, via Javascript
- How to force input to only allow Alpha Letters?