187415/do-something-if-screen-width-is-less-than-960-px
How can I make jQuery do something if my screen width is less than 960 pixels? The code below always fires the 2nd alert, regardless of my window size:
if (screen.width < 960) { alert('Less than 960'); } else { alert('More than 960'); }
You probably want to use a CASE ...READ MORE
To check whether a Checkbox has been ...READ MORE
I'm having trouble figuring this out. I ...READ MORE
I have a function below that I ...READ MORE
This is the best and the most ...READ MORE
I was parsing some smooth-scrolling code online ...READ MORE
Hey, jQuery is a fast and concise JavaScript ...READ MORE
Hello, Use the following script tag in your ...READ MORE
Hello @kartik, You have provided wrong order for ...READ MORE
Hello @kartik, Set the trigger option of the popover to hover instead ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.