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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:37:37+00:00 2026-05-27T16:37:37+00:00

Possible Duplicate: JS/jQuery (Hide div, show div on click) I’m new to web development

  • 0

Possible Duplicate:
JS/jQuery (Hide div, show div on click)

I’m new to web development and was wondering what the best way to hide elements was. I’m creating a note taking app and want to have a simple “add note” html form that expands when you click a button. Would I do this with CSS or Javascript?

For example

Add Note

after being clicked would expand to an html form something like this

Note Title: <form>

Note Body: <form>

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-27T16:37:38+00:00Added an answer on May 27, 2026 at 4:37 pm

    There are multiple ways of hiding an element. You can either set the display property to hidden or you can also hide it using java script. Below given is solution using jQuery.

    Html

    <a href="#" class="clickme" > Add Note</a>
    <div id="addNote">
        <!-- Your form goes here -->
    </div>
    

    You put your Note form in the div having id addNote. And the javascript for this is

    $(document).ready(function() {
        $('#addNote').hide();
        $('.clickme').click(function() {
          $('#addNote').show();
          $('.clickme').hide();
          return false;
        });
    });
    

    When the page loads, firstly the addNote div is hidden by this $('#addNote').hide(); and when anybody clicks on the link with the class clickme the div having the form is displayed, and the clickme button is hidden.

    You can add transition effects to $('#addNote').show()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to show/hide a div on mouseover using jquery? I have a
Possible Duplicate: JQuery Show hide class on hover just like stackoverflow, when you hover
Possible Duplicate: jQuery bind click ANYTHING but ELEMENT I have this HTML <div id=outer>
Possible Duplicate: How can I use delay() with show() and hide() in Jquery How
Possible Duplicate: Adding show/hide to my div tags the hide/show div tags is not
Possible Duplicate: Show and hide divs at a specific time interval using jQuery I
Possible Duplicate: jQuery/Javascript collision detection What would be the best way using preferably using
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Possible Duplicate: jquery/ajax load new content when available i have a table named news
Possible Duplicate: nearest ancestor node in jQuery html: <div class=post> <h2><a href=# title=>Pellentesque</a></h2> <p><a

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.