Highlighttextarea

Developer
Size
2,158 Kb
Views
30,360

How do I make an highlighttextarea?

Highlighttextarea example. What is a highlighttextarea? How do you make a highlighttextarea? This script and codes were developed by El Alemaño on 15 November 2022, Tuesday.

Highlighttextarea Previews

Highlighttextarea - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>highlighttextarea</title> <link rel='stylesheet prefetch' href='http://www.cloud.elalemanyo.de/tmp/jquery.highlighttextarea.min-f0t77QWmxZ.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="textarea-wrapper">
<textarea id="highlighttextarea" cols="50" rows="6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque at massa non erat convallis vulputate molestie nec dui. Donec auctor blandit nibh quis luctus. Donec tincidunt auctor consequat.</textarea>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
<script src='http://www.cloud.elalemanyo.de/tmp/jquery.highlighttextarea.min-oeFLiy77Vr.js'></script> <script src="js/index.js"></script>
</body>
</html>

Highlighttextarea - Script Codes CSS Codes

.highlightTextarea .highlightTextarea-highlighter { z-index: 1; pointer-events: none;
}
.highlightTextarea mark { background: rgba(0, 64, 0, 0.2); cursor: pointer; pointer-events: all;
}

Highlighttextarea - Script Codes JS Codes

$(document).ready(function() { $('#highlighttextarea').highlightTextarea({ words: { words: ['Lorem ipsum', 'vulputate'] }, debug: false }); $('.textarea-wrapper').on('click', function(e) { e.preventDefault(); if ($(e.target).is('mark')) { var word = $(e.target).text(); var index = $(e.target).index(); alert('Word "'+ word +'" with index '+ index +' was clicked.'); } else { $('.highlightTextarea .highlightTextarea-highlighter').css('z-index','0'); } });
});
Highlighttextarea - Script Codes
Highlighttextarea - Script Codes
Home Page Home
Developer El Alemaño
Username elalemanyo
Uploaded November 15, 2022
Rating 3
Size 2,158 Kb
Views 30,360
Do you need developer help for Highlighttextarea?

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!

El Alemaño (elalemanyo) Script Codes
Create amazing web content 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!