Jquery Tab
How do I make an jquery tab?
What is a jquery tab? How do you make a jquery tab? This script and codes were developed by Parth Viroja on 03 September 2022, Saturday.
Jquery Tab - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Jquery Tab</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="tab-container"> <div class="tabs-menu"> <ul> <li class="current"> <label class="tab" data-tab="0" title="">Tab-1</label> </li> <li> <label class="tab" data-tab="1" title="">Tab-2</label> </li> </ul> </div> <div class="tab-divs"> <div> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit </div> <div> Ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae </div> </div>
</div> <script src='http://code.jquery.com/jquery-1.11.3.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Jquery Tab - Script Codes CSS Codes
* { padding: 0px; margin: 0px; outline: none; font: 20px "Calibri"; font-weight: lighter; list-style-type: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { background: #009900; overflow: hidden; overflow-y: auto; padding: 10% 20%;
}
h1 { font-size: 3em; font-weight: lighter; color: #fff; text-align: center; display: block; padding: 40px 0px;
}
.tab-container { position: relative; display: block;
}
.tab-container > .tabs-menu > ul { position: relative; display: block;
}
.tab-container > .tabs-menu > ul > li { position: relative; display: inline-block; background-color: #fff;
}
.tab-container > .tabs-menu > ul > li.current { position: relative; background-color: #ffffff; z-index: 5;
}
.tab-container > .tabs-menu > ul > li.current label.tab { color: #009900;
}
.tab-container label.tab { position: relative; display: block; font-size: 20px; padding: 16px 24px; color: #999; cursor: pointer;
}
.tab-divs { margin-top: -1px;
}
.tab-divs > div { display: block; padding: 20px; display: none; letter-spacing: 1px; background: #fff; color: #009900;
}
.tab-divs > div:first-child { display: block;
}
Jquery Tab - Script Codes JS Codes
$(document).ready(function() { $(document).on('click', '.tab-container label.tab', function() { var no = $(this).data('tab'); $(this).parent('li').siblings().removeClass('current'); $(this).parent('li').addClass('current'); $(this).closest('.tab-container').find('.tab-divs > div').hide().eq(no).show(); });
});
Developer | Parth Viroja |
Username | parthviroja |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,367 Kb |
Views | 30,360 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Slide up down | 1,833 Kb |
Ripple Effect | 2,548 Kb |
Form Wizard | 2,857 Kb |
Tag list | 2,358 Kb |
Card border collspan | 1,781 Kb |
Right side menu tab with icon | 2,480 Kb |
Ubuntu Terminal | 2,603 Kb |
3D-box | 2,346 Kb |
Css Dropdown Design | 2,096 Kb |
Treeview using Angular | 4,244 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Compare resources on mobile sites | Gyusza | 3,226 Kb |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Responsive Section hover effect to show content | Berdejitendra | 2,540 Kb |
Knockout Lists | Marinru | 2,531 Kb |
Minimal Menu | Achudars | 3,430 Kb |
A Pen by Patrick Cox | Pcridesagain | 2,899 Kb |
Faces SVG animation | ScavengerFrontend | 2,957 Kb |
Sticky div | Kaslab | 2,225 Kb |
Playing with transition timing | Mattgrosswork | 1,993 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!