Show hide list
How do I make an show hide list?
What is a show hide list? How do you make a show hide list? This script and codes were developed by Bottomline Interactive on 25 September 2022, Sunday.
Show hide list - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Show hide list</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .rcol-2col { float: left; width: 340px; margin: 0 20px 0 0; position: relative;
}
.rcol-2col-header { background: #e1e1e1; font: 400 14px/1.5 'Trebuchet MS'; color: #7d7d7f; height: 25px; padding: 10px 20px; z-index: 5; position: relative; cursor: pointer;
}
.rcol-2col-header span { float: left;
}
.show-hide { float: right;
}
.rcol-2col-body { font-size: 13px; background: #fff; display: none;
}
.rcol-2col-body tr:hover { background: #f1f1f1; cursor: pointer;
}
.rcol-2col-body td { padding: 10px 20px; border: 1px solid #ccc;
}
.rcol-2col-body-tr-even { background: #f6f6f6;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="rcol-2col"> <div class="rcol-2col-header clearfix"> <span>BOOK A TEST DRIVE</span> <div class="show-hide">Hide</div> </div> <div class="rcol-2col-body"> <table width="340" border="0" cellspacing="0" cellpadding="0"> <tr class="rcol-2col-body-tr-even"> <td width="140">Stocktype</td> <td width="200">Used</td> </tr> <tr> <td>Make</td> <td>Lad Cruiser</td> </tr> <tr class="rcol-2col-body-tr-even"> <td>Model</td> <td>2.0 tfsi quattro s-tronic</td> </tr> <tr> <td>Range</td> <td>Q5</td> </tr> <tr class="rcol-2col-body-tr-even"> <td>Mileage</td> <td>4000 km’s</td> </tr> <tr> <td>Price</td> <td>R000 000</td> </tr> <tr class="rcol-2col-body-tr-even"> <td>Dealer</td> <td>Cape Town</td> </tr> <tr> <td>Colour</td> <td>Meteor Grey</td> </tr> </table> </div> </div>
<div class="rcol-2col"> <div class="rcol-2col-header clearfix"> <span>BOOK A TEST DRIVE</span> <div class="show-hide">Hide</div> </div> <div class="rcol-2col-body"> <table width="340" border="0" cellspacing="0" cellpadding="0"> <tr class="rcol-2col-body-tr-even"> <td width="140">Stocktype</td> <td width="200">Used</td> </tr> <tr> <td>Make</td> <td>Lad Cruiser</td> </tr> <tr class="rcol-2col-body-tr-even"> <td>Model</td> <td>2.0 tfsi quattro s-tronic</td> </tr> <tr> <td>Range</td> <td>Q5</td> </tr> <tr class="rcol-2col-body-tr-even"> <td>Mileage</td> <td>4000 km’s</td> </tr> <tr> <td>Price</td> <td>R000 000</td> </tr> <tr class="rcol-2col-body-tr-even"> <td>Dealer</td> <td>Cape Town</td> </tr> <tr> <td>Colour</td> <td>Meteor Grey</td> </tr> </table> </div> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Show hide list - Script Codes CSS Codes
.rcol-2col { float: left; width: 340px; margin: 0 20px 0 0; position: relative;
}
.rcol-2col-header { background: #e1e1e1; font: 400 14px/1.5 'Trebuchet MS'; color: #7d7d7f; height: 25px; padding: 10px 20px; z-index: 5; position: relative; cursor: pointer;
}
.rcol-2col-header span { float: left;
}
.show-hide { float: right;
}
.rcol-2col-body { font-size: 13px; background: #fff; display: none;
}
.rcol-2col-body tr:hover { background: #f1f1f1; cursor: pointer;
}
.rcol-2col-body td { padding: 10px 20px; border: 1px solid #ccc;
}
.rcol-2col-body-tr-even { background: #f6f6f6;
}
Show hide list - Script Codes JS Codes
// infoWraps Show Hide // $(".rcol-2col-header").click (function(){ // Close all open windows // $(".rcol-2col-body").stop().slideUp(300); // Toggle this window open/close $(this).next(".rcol-2col-body").stop().slideToggle(300); if ($(this).children('.show-hide').text() == 'More +') { $(this).children('.show-hide').text('Less -'); } else { $(this).children('.show-hide').text('More +'); } });
Developer | Bottomline Interactive |
Username | BottomlineInteractive |
Uploaded | September 25, 2022 |
Rating | 3 |
Size | 2,760 Kb |
Views | 28,336 |
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 |
CSS Page Curl Shadows | 3,461 Kb |
Calculator | 39,488 Kb |
Cut and Paste Roll Link | 2,546 Kb |
Center align div | 1,896 Kb |
Unusual Underline | 1,805 Kb |
IE10 Conditional Statement | 1,990 Kb |
Simple Waypoint Example | 2,222 Kb |
Custom Animated Select Box | 2,467 Kb |
A Pen by Bottomline Interactive | 2,392 Kb |
Cut N Paste Css Boxes | 6,418 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 |
Subtle site navigation with description | Necks | 3,206 Kb |
A Pen by Manoz | Manoz | 2,424 Kb |
Virtual vinyl | Davidpanik | 3,474 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
Dribbble Template | ExtremelyGinger | 2,204 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Responsive Table-less Shopping Cart | Alex_rodrigues | 6,637 Kb |
Snow collision | Wojtek1150 | 3,542 Kb |
Price | Catcode | 2,623 Kb |
Formations | Cantelope | 5,731 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!