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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:03:36+00:00 2026-06-06T23:03:36+00:00

Ive built a number of forms that I now want to display based on

  • 0

Ive built a number of forms that I now want to display based on the user choosing the nessecary select option.
What is the best way to add this within jquery so that I can animate the forms (i.e fading in and out) when selected.

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-06-06T23:03:40+00:00Added an answer on June 6, 2026 at 11:03 pm

    You may consider using a pre-built option from jQuery UI, such as http://jqueryui.com/demos/accordion/ or http://jqueryui.com/demos/tabs/

    If you want to build it yourself, you can start with:

    ​<select id="chooser">
        <option value="">Select...</option>
        <option​​​​​ value="formOne">One</option>
        <option value="formTwo">Two</option>
        <option value="formThree">Three</option>
    ​</select>
    
    <form id="formOne" class="chooseable">Form One is here.</form>
    <form id="formTwo" class="chooseable">Form Two is here.</form>
    <form id="formThree" class="chooseable">Form Three is here.</form>​
    

    The JavaScript:

    jQuery(function($) {
        $('.chooseable').hide();
        var shown = false;
        $('#chooser').change(function() {
            var next = this.value;
            if (shown) {
                $('#'+shown).fadeOut('slow', function() {
                    if (next) $('#'+next).fadeIn();
                });
            } else if (next) $('#'+next).fadeIn();
            shown = next;
        });
    });
    

    See the fiddle: http://jsfiddle.net/XG87j/

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

Sidebar

Related Questions

Ive built a little jquery sliding div on my website that when you hover
I have a small template that ive built for the purpose of implementing an
I've built an ASP.NET application that's using Forms Authentication. In our hosting account control
I've built a UI widget that allows me to create a set of nested
I've built an app that sends an JSON array via POST on a HTTP
I've built a system that uses underscore-js to render templates, and it works fine
I've built a very simple website using PHP Includes to display the footer and
I've built a Matlab/Simulink model that I'm using to simulate the performance of an
Is there a built-in function in PHP or MySQL that will provide the total
Ive finished Learning Rails 3 by O'Really, and now its time to experiment knowledge

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.