Tab Change on Click and Detect Hashtag Change
This simple code helps you create tab buttons and tab contents When a user clicks on a tab button, the corresponding tab content will be revealed This simple code uses jQuery and is useful when you need to display lots of content across different tabs <pre data-line=""> <code readonly="true"> <xmp> Button 1 Button 2 Button 3 tab content 1 tab content 2 tab content 3 <style> .btn{ border: 1px solid; padding: 10px; } .btn.selected{ background: red; } .tab{ background: #ccc; padding: 100px; opacity: 0.5; } .tab.selected{ opacity: 1; } </style></xmp> </code> </pre> Button 1 Button 2 Button 3 tab content 1 tab content 2 tab content 3 <style> .btn{ border: 1px solid; padding: 10px; } .btn.selected{ background: red; } .tab{ background: #ccc; padding: 100px; opacity: 0.5; } .tab.selected{ opacity: 1; } </style>