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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:04:00+00:00 2026-05-31T00:04:00+00:00

i have a form hidden with inline style=display: none; how can i dinamicaly change

  • 0

i have a form hidden with inline style="display: none;"

how can i dinamicaly change this style to style="display: inline;" when a link on the page is clicked?

  • 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-31T00:04:02+00:00Added an answer on May 31, 2026 at 12:04 am

    Prety simple

    <a href="#" onclick="document.getElementById('myform').style.display = 'inline';">Click me</a>
    

    Update


    jQuery is a lightweight JavaScript library that can do tons of cool stuff, with writing a very less script from the developers side.

    First of all, I suggest you to read “How jQuery works?“, is has everything you need to get started using the jQuery.


    I will explain the code I wrote in the fiddle.

    First of all the link & form

    <a id="linktotoggle" href="#">Click Me</a>
    <form id="formtotoggle"></form>
    

    Remember the id in the link and form above. That is how we are going to select the element in the script just like what document.getElementById() does.

    Lets hide the form by default

    #formtotoggle { display: none; }
    

    Now lets write the jquery

    $(document).ready(function() {
    // ^ This is an event, which triggers once all the document is loaded so that the manipulation is always guaranteed to run.
       $("#linktotoggle").click(function() {
       // ^ Attach a click event to our link
            $("#formtotoggle").toggle();
            // ^ select the form and toggle its display
    
       });
    });
    

    Hope it is enough, to get you started.

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

Sidebar

Related Questions

I have a form: <form style=display: inline; action=/player.php method=post> <input type=hidden name=recname value='.$row['name'].'> <input
I have the following form declaration: <div class=edit-dialog span-10 style=display:none;> <div class=edit-message span-10 style=margin-bottom:30px;>
i have the following form <form action=#!/search/ method=get style=display:inline; id=hdr_q> <table cellpadding=0 cellspacing=0> <tr><td><input
I have a contact form that can be hidden using .slideToggle() but I want
So i have this structure <div class=accordionContent> <form action=/make_requests class=make_request method=post><div style=margin:0;padding:0;display:inline><input name=authenticity_token type=hidden
I have a popup <div> which clones a hidden form and inserts this into
I have a form with a hidden Came from Adwords field that will be
I have a field in a CCK node form that is hidden, and has
Is it legal to have an HTML form with more than one hidden control
I have a hidden button on a form that I need to click in

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.