No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
csHightLight.js
demo.html

README.md

csTextHightLight

Hightlight Text using jQuery

csTextHightLight is jQuery plugin to highlight multiple words in specific element.

Basic functionality

you can pass array of words into list parametter

<script>
 $(function () {
     $('body').csTextHightLight({  
      list: ['simply', 'by', 'readable']
    });
 });
 </script>

Change class, color and background color

<script>
 $(function () {
     $('body').csTextHightLight({
     list: ['simply', 'by', 'readable'],
     color:'#fff',
     class:'anotherClass',
     background:'#000'
    });
 });
 </script>

destory csTextHightLight

<script>
 $(function () {
     $('body').csTextHightLight('destroy');
 });
 </script>

You have to destroy csTextHightLight first if you want to initialize again on same element. For exp.

<script>
 $(function () {
     $('body').csTextHightLight('destroy');
      $('body').csTextHightLight({  
       list: ['simply', 'by', 'readable']
    });
 });
 </script>