Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Shelane French
Added: Jan 24, 2020 9:30 PM
Views: 101
  1. if(window.location.hash) {
  2.     var hash = window.location.hash.substring(1);
  3.     $('.nav-tabs a[href="#' + hash + '"]').tab('show');
  4. }