I'm trying to call an equal height function using $(document).ready
, though I had to call it like this, because I was getting a Type Error.
jQuery(function($) {
$(".cols").equalHeights();
});
Instead of
$(document).ready(function() {
$(".cols").equalHeights();
});
This works great, but I would also like the plugin to run when the page is resized, (so it will adjust to the content overflow). Below is the resize call, how can I combine it with the document ready call?
$(".cols").resize(function(){
$(".cols").equalHeights();
});