How To Create a Read More Read Less Button using jQuery?

Today, We want to share with you read more read less jquery.In this post we will show you show more show less jquery, hear for dynamically shortened text with “show more” link using jquery we will give you demo and example for implement.In this post, we will learn about jQuery Read More/Less Toggle with an example.


here display Custom ReadMore and ReadLess using jQuery / Javascript Function with Example.


<!doctype html>
<html lang="en">

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Custom Read More Read Less Using jQuery - - Demo ::</title>
    <script src=""></script>
    function AddReadMore() {
        //This limit you can set after how much characters you want to show Read More.
        var carLmt = 80;
        // Text to show when text is collapsed
        var contentDataTxt = " ... Read More";
        // Text to show when text is expanded
        var someVeekTxt = " Read Less";

        //Traverse all selectors with this class and manupulate HTML part to show Read More
        $(".showContentAll").each(function() {
            if ($(this).find(".firstSec").length)

            var allstr = $(this).text();
            if (allstr.length > carLmt) {
                var firstSet = allstr.substring(0, carLmt);
                var secdHalf = allstr.substring(carLmt, allstr.length);
                var strtoadd = firstSet + "<span class='DspInfo'>" + secdHalf + "</span><span class='contentData'  title='Click to Show More'>" + contentDataTxt + "</span><span class='someVeek' title='Click to Show Less'>" + someVeekTxt + "</span>";

        //ReadMore and ReadLess Click Event binding
        $(document).on("click", ".contentData,.someVeek", function() {
            $(this).closest(".showContentAll").toggleClass("displayreadallsome readalldatafull");
    $(function() {
        //Calling function after Page Load
    .showContentAll.displayreadallsome .DspInfo,
    .showContentAll.displayreadallsome .someVeek {
        display: none;

    .showContentAll.readalldatafull .contentData {
        display: none;

    .showContentAll .contentData,
    .showContentAll .someVeek {
        font-weight: bold;
        margin-left: 2px;
        color: blue;
        cursor: pointer;

    .showContentAllWrapTxt.readalldatafull .DspInfo,
    .showContentAllWrapTxt.readalldatafull .someVeek {
        display: block;

    <h3>Show More Content</h3>
    <p class="showContentAll displayreadallsome">TamilRockers. TamilRockers is a public torrent website. TamilRockers website uploads the pirated versions of Tamil, Telugu, Hindi, English. Tamil Movies HD New TamilRockers. 42 004 members. View in Telegram · Preview channel. If you have Telegram, you can view and join. Because tamilrockers website is blocked by the telecommunications authorities of India(ISP) to prevent movie piracy. What is Tamilrockers? Tamilrockers site gives Tamil, Telugu, Hindi, English, and Malayalam motion pictures for nothing download. Tamilrockers is an online Piracy Site that Provide Malayalam And Telegu Movies, Films, Songs And Vid. Tamilrockers and Movierulz are Torrent websites that illegally upload and distribute copyrighted contents, including TV shows, movies, music and videos.


I hope you get an idea about readmore readless jquery for dynamic data.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.