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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:16:16+00:00 2026-05-24T08:16:16+00:00

I am using a simple jquery toogle to show and hide a form. What

  • 0

I am using a simple jquery toogle to show and hide a form. What I am trying to do, is when the toggle is in a close position, print an html message. I have tried various ways, but although the message appears, the form does not show. Only the message toggles. How can I overcome this? Many thanks

jQuery("#fld_company").live('click', function() {
              $("#fld_fld").toggle(1000);
        });

+++UPDATE+++

<legend id="fld_company">Select Company</legend>
            <div id="fld_fld">
             <dl>
              <dt>
                <label for="AUSR_companyname" class="opt">Company Name:</label>
              </dt>
              <dd>
                <input id="AUSR_companyname" name="AUSR_companyname" type="text" size="32" maxlength="128" size="32" value = "" />
              </dd>
             </dl>

I have only posted a small section to the html because the markup is identical. There are tags in place also.

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

    I’ve posted a fiddle here with a working solution.

    Essentially, the JS is structured like this:

    jQuery("#toggler").live('click', function() { /* toggler is the element that triggers the toggling */
        $("#form1").toggle(1000); /* form1 is the form element you want to hide/show */
        $("#formMessage").toggle(1000); /* formMessage is the element you want to display when the form is hidden */
    });
    

    A key piece to this code is that you will need to set the visibility of form1 and formMessage to be opposite of each other. So, if you want the form1 element to default as visible, then you should include in your css: #formMessage { display: none; }

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

Sidebar

Related Questions

I am using jQuery for a simple website and have a main page 'index.html'
I have started using jQuery and rails. I have made a simple form that
I have a simple hide show jquery script I grabbed from an example site.
Trying to make a simple toggle menu, and I can't seem to hide/show the
I have a simple piece of jquery i am using to toggle the visibility
I have a blob of HTML that I'm retrieving using simple jQuery selectors, something
I'm using a simple jquery code that grabs html code form a tag and
I am using jQuery's auto-complete plugin for a simple search form. I am having
I'm using jQuery to post a form to a php file, simple script to
I want to do a simple drag-drop using jQuery. I have not done anything

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.