Skip to content
Discussion options

You must be logged in to vote

I share here my solution:

@push('after_scripts')
<script>
    $(document).ready(function() {
        // Listen for main tab changes
        $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
            var target = $(e.target).attr("href"); // Gets the ID of the activated tab
            if (target === '#tab_contenuto') {
                console.log("Tab contenuto attivato");

                // Activate the first language tab within the "Content" tab
                setTimeout(function() { // A slight delay may be necessary to ensure that the DOM is ready
                    $('#myTabs a:first').tab('show'); // Activate the first language tab with jQuery
                }, 100)…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@blondie63
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by karandatwani92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants