Most Popular

1500 questions
2696
votes
42 answers

Make a div fill the height of the remaining screen space

I am working on a web application where I want the content to fill the height of the entire screen. The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of…
Vincent McNabb
  • 33,327
  • 7
  • 31
  • 53
2694
votes
73 answers

How can I get query string values in JavaScript?

Is there a plugin-less way of retrieving query string values via jQuery (or without)? If so, how? If not, is there a plugin which can do so?
Subliminal Hash
  • 13,614
  • 20
  • 73
  • 104
2690
votes
32 answers

What does O(log n) mean exactly?

I am learning about Big O Notation running times and amortized times. I understand the notion of O(n) linear time, meaning that the size of the input affects the growth of the algorithm proportionally...and the same goes for, for example, quadratic…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
2687
votes
42 answers

How can I update each dependency in package.json to the latest version?

I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don't mind fixing something if it breaks. What's the easiest way to do this? The best way I know is…
Raine Revere
  • 30,985
  • 5
  • 40
  • 52
2684
votes
33 answers

Scroll to an element with jQuery

I have this input element: Then I have some other elements, like other tag's &