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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:17:07+00:00 2026-05-25T20:17:07+00:00

When I load my page I should only see the drop down menu but

  • 0

When I load my page I should only see the drop down menu but instead I am seeing my newwebsite Section. What could be causing it to show?

HTML:

JS:

$(function() {
  $('#requiredOption').change(function() {
    var divToHide = "#" + $(this).val() + "Section";
    $(divToHide).show()
      .siblings('#newwebsiteSection, #websiteredevelopmentSection, #otherSection')
        .hide();
  });
});

<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>Template 2011</title>
    <link rel="stylesheet" href="_assets/css/style.css">
</head>
    <body>
        <header>
            <div id="logo">Template Here</div>
                <nav>
                    <ul>
                        <li><a href="/">Home</a></li>
                        <li><a href="#">About Me</a></li>
                        <li><a href="quote.html">Free Quote</a></li>
                        <li><a href="#">Showcase</a></li>
                        <li><a href="#">Contact Me</a></li>
                    </ul>
                </nav>
        </header>
            <section id="content">
                <h1>Free Quote</h1>
                    <p>Please fill out the below questionnaire to receive your free web development quote</p>
                        <form action="" method="post" accept-charset="utf-8">
                            <select name="requiredOption" id="requiredOption">
                                <option id="pleaseselect" value="pleaseselect">Please Select Your Required Quote</option>
                                <option id="newwebsite" value="newwebsite">New Website</option>
                                <option id="websiteredevelopment" value="websiteredevelopment">Website Redevelopment</option>
                                <option id="other" value="other">Other</option>
                            </select>
                        </form>
                            <section id="newwebsiteSection">
                                <form action="" id="newwebsiteForm" method="get" accept-charset="utf-8">
                                <fieldset>  
                                <div><label>Do You Require Hosting?</label><input type="radio" name="Yes" value="Yes">Yes</input><input type="radio" name="No" value="No">No</input></div>

                                <div><label>Do You Require A Domain?</label><input type="radio" name="Yes" value="Yes">Yes</input><input type="radio" name="No" value="No">No</input></div>

                                <div><label>Do You Have A Logo?</label><input type="radio" name="Yes" value="Yes">Yes</input><input type="radio" name="No" value="No">No</input></div>

                                <div><label>What is your Domain?</label></div> 
                                <div><input type="url" name="domain" value="http://example.com"></input></div>

                                <div><label>Type of site Required?<label></div>
                                <div>
                                    <select name="newwebsiteType" id="newwebsiteType">
                                    <option value="shoppingCart">Shopping Cart</option>
                                    <option value="CMS">Content Management System</option>
                                    <option value="static">Static Website</option>
                                    <option value="otherDevelopment">Other Development</option>
                                </select>
                                </div>

                                <div><label>Do You Require A Design?</label></div>
                                <div><input type="radio" name="Yes" value="Yes">Yes</input><input type="radio" name="No" value="No">No</input></div>

                                <div><label>Three Favorite colors?</label></div>
                                    <div><input name="color1" value=""></input></div>
                                    <div><input name="color2" value=""></input></div>
                                    <div><input name="color3" value=""></input></div>

                                <div><label>What are your favorite websites?</label></div>
                                    <div><input type="text" name="fav1" value=""></input></div>
                                    <div><input type="text" name="fav2" value=""></input></div>
                                    <div><input type="text" name="fav3" value=""></input></div>

                                <div><label>Comments?</label></div>
                                <div><textarea name="comments" id="comments"></textarea></div>

                                <div><input type="submit" name="submit" value="Send Quote Request"></div>
                                </form>
                            </section>
                                <section id="websiteredevelopmentSection">
                                    <p>Website Redevelopment</p>
                                </section>
                                    <section id="otherSection">
                                        <p>Other</p>
                                    </section>

    </section>
            <section id="sidebar">
        <div id="box_one">
            <p>Box One</p>
        </div>
        <div id="box_two">
            <p>Box Two</p>
        </div>
        <div id="box_three">
            <p>Box Three</p>
        </div>
        </section>      
            <footer>
                <p>This is the footer</p>
            </footer>
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
            <script src="_assets/js/js.js" type="text/javascript"></script>
</body>

CSS:

/* Quote Page */˝
#newwebsiteSection, #websiteredevelopmentSection, #otherSection{
    display:none;
}
#newwebsiteForm fieldset{
    width:600px;
    margin:0 auto;
}
#newwebsiteForm  input {
    display:inline;
    border:1px solid #444; 
    border-top-color:#333;
    background-color: #222; /* IE */
    background-color: rgba(0, 0, 0, 0.3);
    margin: 20px 0 0 0;
    padding: 2px 9px 2px 9px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    width:250px;
    height:28px;
    color: #989898;

    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;

}

#newwebsiteForm input:hover { 
    border-color:#4C4C4C;
    border-top-color:#343434;
}

#newwebsiteForm input:focus { 
    box-shadow: 0px 0px 3px #555;
    border-color:#4C4C4C;
    border-top-color:#343434;
}


#newwebsiteForm textarea {
    display:inline;
    border:1px solid #444;      
    border-top-color:#333;
    background-color: #222; /* IE */
    background-color: rgba(0, 0, 0, 0.3);
    font-family: Verdana, Arial, Helvetica, sans-serif; 
    margin:20px 0;
    padding: 4px 9px 4px 9px;
    font-size: 11px;
    width:250px;
    height:132px;
    color: #989898;

    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    resize:none;
}

#newwebsiteForm textarea:hover {
    border-color:#4C4C4C;
    border-top-color:#343434;
}

#newwebsiteForm textarea:focus { 
    box-shadow: 0px 0px 3px #555;
    border-color:#4C4C4C;
    border-top-color:#343434;
}
  • 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-25T20:17:08+00:00Added an answer on May 25, 2026 at 8:17 pm

    Try hiding the elements on page load.

        $(function() {
            $('#requiredOption').change(function() {
                var divToHide = "#" + $(this).val() + "Section";
                    $(divToHide).show()
                    .siblings('#newwebsiteSection, #websiteredevelopmentSection, #otherSection')
                    .hide();
            });
            $('#requiredOption').trigger('change');
    

    // hide ALL
    $(‘#newwebsiteSection, #websiteredevelopmentSection, #otherSection’).hide();

    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jsp page which should load a popup using ajax. The content
I have created this page and when you load the page you see there
I have created http://techavid.com/design/test3.html and when you load the page you see there are
I'm trying to load page and then remove some elements in it. While doing
I've previously used jquery-ui tabs extension to load page fragments via ajax , and
Upon page load I want to move the cursor to a particular field. No
Is Page.Load the earliest point in the Page.Load life cycle to add Response.AppendHeader?
If I load a page in an iframe, run doc.querySelect to retrieve a node
I'm adding some <script> tags dynamically to the head element after page load. I
This code will always make my aspx page load twice. And this has nothing

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.