Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3803970
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:26:44+00:00 2026-05-19T14:26:44+00:00

I have one field like Biography which is having a text, and I need

  • 0

I have one field like Biography which is having a text, and I need to show half (some) of the text of that field on first page and then continue reading link appears, after clicking that link remaining text will be displayed on the same page

I need to achieve that in HTML.
Can anyone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:26:45+00:00Added an answer on May 19, 2026 at 2:26 pm

    Note that this is rapid prototyping. You can get better mileage if you are using jquery.

    <div>
    
    <span> Biography, first half ...</span>
    <a href="javascript:showAll('bioSecondHalf')">Continue reading</a>
    
    <span id="bioSecondHalf" style="display:none"> Biography, second half</span>
    
    </div>
    
    <script type="text/javascript">
       function showAll(id) {
          document.getElementById(id).style.display = "block";
       }
    </script>
    

    If you are starting with the full block of text and need to do everything client side:

    <div id="biography" style="display:none">
    
    Biography first half
    Biography second half
    
    </div>
    

    If the block of text contains no markup html, then, you can grab the contents of the biography div and manipulate it on page load

    <script>
    window.onload = function() {
       var bioText = document.getElementById("biography").innerHTML;
       var bioFirstHalf = bioText.substring(0,bioText.length/2);
       var bioSecondHalf = bioText.substring(bioText.length/2);
       document.getElementById("biography").innerHTML = bioFirstHalf + " <a href='javascript:showAll(\"bioSecondHalf\")'>Continue reading</a>" + " <span id='bioSecondHalf' style='display:none'>" + bioSecondHalf + "</span>"
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class that contains a boolean field like this one: public class
I have one text box on that text box i am using required field
i have one text field and setting its name & values from php, like:
I have one field that I need to sum lets say named items However
I develop a custom control that have some field like below: ControlKind, Field1 ,
I have one text field where user can write short message (like status on
I'd like to have access to one my model field verbose_name. I can get
I have a model like the following one: public class TestModel{ public IList<Field> Fields
I have a favorite table containing some fields like login_id,driver_id(One login_id may have many
I have one table view that should be filtered by values of search field

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.