F
F
Frank22052017-06-17 15:14:03
css
Frank2205, 2017-06-17 15:14:03

How to change the behavior of an accordion?

0cf82beaa4ab4c10b01fc571ce6a8543.png
there are bootstrap tabs here. if one tab open its button should not be visible. This is how it is in the design:
e3c3c575b0c945e59caeaeb1c99126e8.png
and the tab buttons should not climb up when another tab is opened, like this:
7f7799844771400084211b1a201134f6.png
/....................... ................................................. ................................................. ........................................./

$(document).ready(function () {
        console.log("ready!");
        var collapseItem = $('.panel-title>a');
        if (!collapseItem.hasClass('collapsed')) {
            collapseItem.css('display', 'none');
        }else{
             collapseItem.css('display', 'block');
        }
    });

here is the code at the top is not robotic

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question