Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
I am trying to key on when the accordion loads, however using the "load" option to attach a function does not seem to fire, and trying the "tabs-load" does not work either.
Can you please explain how to use this features?
I have tried the following:
$('#tab-container').responsiveTabs({
<otheroptions>,
load: function () {
console.log("test");
}
});
$('#tab-container').responsiveTabs({
<otheroptions>,
load: function (event, firstTab) {
console.log("test");
}
});
and:
$('#tab-container').responsiveTabs({
<otheroptions>
}).on('tabs-load', function () {
console.log("test");
});
And I am not seeing my log statements. I see other log statements that I ahve running on the page, and have tried warn() and error() just to see.
I am trying to key on when the accordion loads, however using the "load" option to attach a function does not seem to fire, and trying the "tabs-load" does not work either.
Can you please explain how to use this features?
I have tried the following:
and:
And I am not seeing my log statements. I see other log statements that I ahve running on the page, and have tried warn() and error() just to see.