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

  • Home
  • SEARCH
  • 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 7011541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:08:27+00:00 2026-05-27T22:08:27+00:00

I have issue with showing some content in div. I have some text consider

  • 0

I have issue with showing some content in div.
I have some text consider 10 lines of content which I have to show in div.
I would like to design in such a way that initially div will show 2 lines of content only, & have one link “Read Complete”. & when I will click on that link the whole content must be shown & link must be changed to “Hide”. & if I again click on Hide link it must be again shown only 2 lines of content.

Please help with me this issue.

Update: When the content is of two line @ the end of content it must show 3 dots (…)

  • 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-27T22:08:27+00:00Added an answer on May 27, 2026 at 10:08 pm

    I hope this will help you

    <div id="mydiv">
    Please read the documentation.
    For updates please follow our blog, tweets or become a fan.
        <span><a href="#" id="more" onclick="full_view(this.id)">more</a></span>
    <span style="display:none;" id="disMore"><p>Please read the documentation.    
    For updates please follow our blog, tweets or become a fan.Please read the documentation.
    For updates please follow our blog, tweets or become a fan.Please read the documentation.
    For updates please follow our blog, tweets or become a fan.</p></span>
    <span><a href="#" id="hide" onclick="half_view(this.id)" style="display:none;">hide</a></span>
    </div>
    

    Javascript:

    function full_view(e) {
    document.getElementById('disMore').style.display = "block";
    document.getElementById('more').style.display = "none";
    document.getElementById('hide').style.display = "block";
    }
    function half_view(e) {
    document.getElementById('disMore').style.display = "none";
    document.getElementById('more').style.display = "block";
    document.getElementById('hide').style.display = "none";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some issue with a Perl script. It modifies the content of a
Let me say I have a route/action for showing content pages like this: /Page/{slug}
I have this critical issue with showing top statusbar on the custom camera overlay
The Blackberry Torch is showing some wierd behaviour. I have subclassed EditField only for
I have an issue with the following text display: <asp:RegularExpressionValidator ID=Password_RegularExpValidate runat=server Text=TEST! Display=Dynamic
I would like to have the EntityFramework4 model (.edmx and .context.tt) in a Class
I have a page and I want to show some paragraphs after clicking a
I seem to have this perplexing issue with Moles not generating delegates, for some
I have installed some python packages which I am able to access using IDLE
I am creating a website in asp.net but i have some issue.. I have

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.