I'm trying to use this plugin http://www.cssnewbie.com/example/equal-heights/plugin.html but haven't used much javascript before. It says:
Load the jQuery library in your document’s head. - no probs
Load the equalHeights plugin the same way. - fine, I can do that
But then it says: In order for the function to be able to calculate heights accurately, you’ll need to make sure it waits until the page is done loading before running. So wrap the function call (just like you should most all of your jQuery functions) in a $(docment).ready() function, like so:
$(document).ready(function() {
$(".columns").equalHeights(100,300);
});
Now I'm not sure where I put this exactly. In another javascript file I included before that piece of code (or similar) was in the included javascript file already.
Can I just stick that function in the jsfile? or does it need to happen somewhere on the page?