You can use $(window).width()
if($(window).width() >= 1024){
// do your stuff
}
Demo --->
http://jsfiddle.net/fh2eC/1/
More Related Contents:
- jQuery – What are differences between $(document).ready and $(window).load?
- How can I find elements by text content with jQuery?
- Calculating text width
- How to set data attributes in HTML elements
- Activate CSS3 animation when the content scrolls into view
- Django dependent select
- How to detect new element creation in jQuery?
- jQuery: height()/width() and “display:none”
- Synchronous XMLHttpRequest warning and
- How to add a Not Equal To rule in jQuery.validation
- Triggering click event on anchor tag doesn’t work
- Using jQuery with Windows 8 Metro JavaScript App causes security error
- How to create dropdown list dynamically using jQuery?
- jQuery add CSRF token to all $.post() requests’ data
- jQuery Ajax simple call
- Ajax call to download file returned from RESTful service
- Run JQuery in the context of another frame
- Get value of div content using jquery
- Getting value from JQUERY datepicker
- How to sort DOM elements while selecting in jQuery?
- Change HTML of an iFrame with jQuery?
- jQuery: Hide popup if click detected elsewhere
- jQuery find parent form
- jQuery UI Slider (setting programmatically)
- What HTTP status codes count as success in jQuery.ajax?
- Switch positions of 2 divs with jQuery
- Preventing “SCRIPT5: Access is denied” error in IE
- How to use multiple jquery object variables as selectors?
- How to select first row of the first table in an html page using jQuery?
- How can I extend jQueryUI datepicker to accept an additional argument?