Expand and collapse element using jquery expander
How do I make an expand and collapse element using jquery expander?
Expand and collapse element using jquery expander. What is a expand and collapse element using jquery expander? How do you make a expand and collapse element using jquery expander? This script and codes were developed by Dzulfikar Adi Putra on 06 September 2022, Tuesday.
Expand and collapse element using jquery expander - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>expand and collapse element using jquery expander</title>
</head>
<body> <div class="expander">
1. Linux Exp : 2
<br>
2. Mac Exp : 3
<br>
3. Windows Exp : 3
<br>
4. BSD Exp : 3
<br>
5. Solaris Exp : 3
<br>
6. Word Exp : 3
<br>
7. Excel Exp : 4
<br>
8. Access Exp : 3
<br>
9. Power Point Exp : 3
<br>
10. Photoshop Exp : 3
<br>
11. Illustrator Exp : 4
<br>
12. QuarkXpress Exp : 4
<br> </div> <div class="expander">-</div> <div class="expander">
1. Linux Exp : 2
<br>
2. Mac Exp : 3
<br>
3. Windows Exp : 3
<br> </div>
<div class="elemen"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://plugins.learningjquery.com/expander/jquery.expander.js'></script> <script src="js/index.js"></script>
</body>
</html>
Expand and collapse element using jquery expander - Script Codes JS Codes
var str = $('p').text();
//$('.elemen').text($('p').text().indexOf("4."));
var teks = $("div.expander").html().indexOf("<br>");
$('div.expander').expander({
slicePoint: $('div.expander').html().indexOf("<br>"), //slice point index, expandPrefix: ' ', // default is '... ' expandText: '<br/>[ more details ]', // default is 'read more' collapseTimer: 10000, // re-collapses after 5 seconds; default is 0, so no re-collapsing userCollapseText: '<br/>[ less details ]', // default is 'read less' preserveWords: false });
Developer | Dzulfikar Adi Putra |
Username | superpikar |
Uploaded | September 06, 2022 |
Rating | 3 |
Size | 1,854 Kb |
Views | 40,480 |
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 |
Ionic - Wordpress REST API starter | 2,961 Kb |
SVG Animation Follow Path - d3js | 3,068 Kb |
Ionic tabs in the middle of the screen | 3,727 Kb |
Multiple Expand Collapse | 2,733 Kb |
Image Map | 4,096 Kb |
Play and Pause Bootstrap 3 Button | 2,255 Kb |
Force Layout JSON Directed Graph using Dot Engine 2, nodes using array of object | 3,127 Kb |
Bulma breadcrumbs | 1,895 Kb |
Ionic Alphabetical List | 3,136 Kb |
Force Layout Directed Graph using dot engine dagre-d3js library, data from JSON | 6,536 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 |
AngularJS Animated Todo List | Ehaase | 2,975 Kb |
IPhone5S SVG Space Grey | Onlinechris | 75,035 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
CSS- UI Element States Pseudo-Classes | Tesla809 | 2,206 Kb |
Slider css only | Armandobau | 2,161 Kb |
Simple Weather App | Cmwebby | 0 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Guidepopup | Wooljs | 3,747 Kb |
Horizontal Navigation with Floats | Gymratpacks | 5,403 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!