Expand and collapse element using jquery expander

Size
1,854 Kb
Views
40,480

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 Previews

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 });
Expand and collapse element using jquery expander - Script Codes
Expand and collapse element using jquery expander - Script Codes
Home Page Home
Developer Dzulfikar Adi Putra
Username superpikar
Uploaded September 06, 2022
Rating 3
Size 1,854 Kb
Views 40,480
Do you need developer help for Expand and collapse element using jquery expander?

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!

Dzulfikar Adi Putra (superpikar) Script Codes
Create amazing art & images with AI!

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!