A year ago the answer was easy, Prototype. Today jQuery has grown enormously and has the largest active community out of all the Javascript libraries. But is it the right choice for you? And what is a Javascript library anyway?
A year ago the answer was easy, Prototype. Today jQuery has grown enormously and has the largest active community out of all the Javascript libraries. But is it the right choice for you? And what is a Javascript library anyway?
It’s really easy to get the position of an element relative to it’s parent element, but what if you wanted to get it’s position relative to the entire page (viewport)? There’s no javascript call to do this, but here is a function to get the elements x & y coordinates.