Thank you for the advice!
There are usually three accordions on these pages, they use classes, .accordion, so I have it like
- $('.accordion').accordion({activate: function(event, ui) {
- var tabletContent = $('.twoCol').height() + $('.sideColumn').height();
- $('#sidebar').css('min-height', Math.max(400, tabletContent));
- }});
But where should this code go in relation to the $.widget ?
Actually they are h6 elements with the class .accordion, should I have it be $('h6').accordion ?
I didn't build this site myself, just helping to get it mobile friendly.