Closed UmerFarook closed 10 years ago
To set the default tab from url ( url with #id of element) use this in you code
if (window.location.hash !== '') { var hasHash = window.location.hash; $('a[href="'+ hasHash +'"]').click(); }
I've done similar things on php based projects. I'm not going to add this straight into this project because it may cause issues on single page Javascript apps.
To set the default tab from url ( url with #id of element) use this in you code
if (window.location.hash !== '') { var hasHash = window.location.hash; $('a[href="'+ hasHash +'"]').click(); }