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 6911561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:58:23+00:00 2026-05-27T08:58:23+00:00

I would like to call a text area on click of a specific div,

  • 0

I would like to call a text area on click of a specific div, eg i have a div and when the user clicks on the div, the text area appears.

i would also like to make 3 divs and when each one is clicked, different html elements are shown, for example, one one div is clicked, the text area is shown, when another div is clicked a submit button is shown in the same area that the text area would be shown in

Please help! thanks.

  • 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-27T08:58:24+00:00Added an answer on May 27, 2026 at 8:58 am

    You can make elements visible and invisible by changing their style.display attribute in javascript.

    A css value of display:none will make an element invisible.
    A css value of display:block will make an element visible, and it will be treated like a block element.

    http://www.w3schools.com/cssref/pr_class_display.asp

    <!DOCTYPE html>
    <html>
    <head>
    <style>
    #textarea {
        display:none;
    
        position:absolute;
        left:180px;
        top:0px;
        width:180px;
        height:130px;
    }
    #div {
        position:absolute;
        left:0px;
        top:0px;
        width:180px;
        height:130px;
        background-color:#F00;
    }
    </style>
    </head>
    <body>
    <textarea id="textarea">Tada</textarea>
    <div id="div" onclick="showTextArea()"></div>
    </body>
    <script>
    function showTextArea() {
        document.getElementById("textarea").style.display = "block";
    }
    </script>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like the text area to call a function when a text is
I would like to draw text on a canvas using the Canvas.drawText call for
I would like to call JavaScript function many time . I have tried like
In order to make bundle work on its own i would like to call
I have a data set that that I would like to call in a
I have a vector of pointers. I would like to call a function for
I would like to display password as text in the password area, and when
I have a Silverlight application in which I would like to call a WCF
I have an ASPX.CS code: Protected int myprop I would like to call it
I would like to call a stored procedure (Oracle). As I my procedure calls

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.