0

I've tried to apply the method found on this post : specific tab hyperlink

But i don't understand why it doesn't work for me. I'm sure it's a little mistake but i'm not an expert in javascript.

If you could give me some help : here is my page but if i try to access directly on my "devis" tab with this link it doesn't work.

Thanks for your time

Community
  • 1
  • 1
jpbond13
  • 21
  • 4

1 Answers1

0

Try this:

Your external link:

<a href="#Devis" data-toggle="tab">Devis From Outside</a>

And JS (to extract tab hash from page URL and update tabs view):

<script>
    $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
        var target = this.href.split('#');
        $('.nav a').filter('a[href="#'+target[1]+'"]').tab('show');
    })
</script>

See JsFiddle DEMO, I hope it works for you, Thanks !

Shady Alset
  • 5,548
  • 4
  • 21
  • 34