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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:15:39+00:00 2026-05-25T02:15:39+00:00

When I load the page both forms are displayed. If I check and then

  • 0

When I load the page both forms are displayed. If I check and then uncheck “add” the second form disappears. How do I make this page load with form 2 hidden on load?

<html>
<title>Car Service</title>
<strong>Car Service:</strong><br><br>
<input type="submit" id="accountsearch" name="accountsearch" value="Select Customer" onclick="window.open('selectaccount.php');"><br><br>
<form name="newservicesetup" id="newservicesetup" action="" method="post">
    <select name="ordertype" id="ordertype">
        <option>(Select Service)</option>
        <option value="Service">Service</option>
        <option value="ServiceHardware">Service w/ Hardware</option>            
    </select>
    <input type="text" name="qty1" id="qty1" value="Quantity" size="5" onclick="this.value=''">
    <input type="checkbox" id="add" value="0" name="add" onclick="
        if (this.checked) {
            document.getElementById('newservicesetup1').style.display='inline';
        } else {
            document.getElementById('newservicesetup1').style.display='none'; } return true;" >
</form>
<form name="newservicesetup1" id="newservicesetup1" action="" method="post">
    <select name="ordertype1" id="ordertype1">
        <option>(Select Service)</option>
        <option value="Service">Service</option>
        <option value="ServiceHardware">Service w/ Hardware</option>            
    </select>
    <input type="text" name="qty2" id="qty2" value="Quantity" size="5" onclick="this.value=''">
</form>
<br>
    XX: <input type="file" name="sfa" id="sfa">
    AA1: <input type="file" name="pbxws" id="pbxws"><br>    <br>
    <input type="submit" name="next" id="next" value="Next">       

  • 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-25T02:15:40+00:00Added an answer on May 25, 2026 at 2:15 am

    set the second forms css class to hidden or something like that and then define .hidden in your css to be display:none. Or put style=’display:none’ t ostart with on the second form

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

Sidebar

Related Questions

From the ASP.Net Page Lifecycle article on MSDN : Although both Init and Load
I'm trying to load page and then remove some elements in it. While doing
Is Page.Load the earliest point in the Page.Load life cycle to add Response.AppendHeader?
I am trying to submit a form by using jquery automatically after page load
I have a html page that posts to another html page. Both pages load
In my php program I display input forms either regular way on page load
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
If I load a page in an iframe, run doc.querySelect to retrieve a node
On my page in the Page_Load event I add a collection of strings to

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.