Equal Heights JQuery Plugin
I'm a bit new to JQuery and am currently trying to get the equalHeights plugin found here:
To fire when the window is re-sized.
The code below calls the function, but won't recall it when the window is resized.
Am I missing something?
- (function ($) {
- $(document).ready(function () {
- var cols = $(".cols");
- cols.resize(function () {
- cols.equalHeights();
- });
- cols.trigger('resize');
- });
- })(jQuery);