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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:18:24+00:00 2026-06-03T21:18:24+00:00

As the title says I have a form for an address and a form

  • 0

As the title says I have a form for an address and a form for another address, both forms have the same fields.

When one form is filled a want the user to be able to check a box to copy the form data over to the other form as these will be the same values alot of the time.

I have all the text fields working, I’m just stuck with the dropdown menu for country.

JAVASCRIPT

    <script language="javascript" type="text/javascript">

    function CopyAddress(f) {

        var SelCountry = document.getElementById("dCountry");
        var SelAccCountry = document.getElementById("dAccCountry");

        if (f.cCopyAddress.checked == true) {
            f.tAccAddress1.value = f.tAddress1.value;
            f.tAccAddress2.value = f.tAddress2.value;
            f.tAccTown.value = f.tTown.value;
            f.tAccCounty.value = f.tCounty.value;
            f.tAccPostcode.value = f.tPostcode.value;
            f.tAccTel.value = f.tTel.value;
            f.tAccFax.value = f.tFax.value;
            f.tAccEmail.value = f.tEmail.value;
            SelAccCountry.options[SelAccCountry.selectedIndex].value = SelCountry.options[SelCountry.selectedIndex].value;
      }
    }
</script>

<asp:CheckBox ID="cCopyAddress" runat="server" onclick="CopyAddress(this.form)" CssClass="autoWidth" />

If you would like me to past in the form code then just let me know but I didn’t think it would be required as i don’t think the error lies there.

  • 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-03T21:18:26+00:00Added an answer on June 3, 2026 at 9:18 pm

    Just assign selectedIndex property.

    SelAccCountry.selectedIndex = SelCountry.selectedIndex;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want what my title says.I have already read all the previous similar
The title says it mostly. If I have an object in Python and want
So as the title says i want to prevent user from keep submiting $_POST
Well as the title says i have 2 web projects that have the same
It's basically what the title says.. I have a form with a select control
As title says, I have a list of words, Like stopWords = [the, and,
As title says, I have access to the current listitem - and it's easy
The title says enough I think. I have a full quality BufferedImage and I
As the title says, I have to trim a binary tree based on a
I have written a code which does the thing as the title says. The

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.