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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:19:20+00:00 2026-06-02T21:19:20+00:00

I am trying to ad the values from 2 form elements into a function

  • 0

I am trying to ad the values from 2 form elements into a function and can get the first to add but can’t work out the correct way to code for the second.

$(function() {
   $('#form_orderTracking').click(function(){
       $('#CustomerDetails').load('TrackOrder1.asp?OrderID=' + $('#orderID').val());
   });
});

I am trying to add the value for the emailAddress field so that the url reads:

TrackOrder1?OrderID=123456&EmailAddress=abc@123.com
  • 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-02T21:19:21+00:00Added an answer on June 2, 2026 at 9:19 pm

    Instead of appending the query string to the url, you can pass it to .load as a 2nd parameter. If you pass an object, it’ll use POST, if you pass a string, it’ll use GET (like your example).

    $.param converts the object to a string, so it uses GET.

    $('#CustomerDetails').load('TrackOrder1.asp', $.param({
        orderID: $('#orderID').val(),
        EmailAddress: emailAddress
    }));
    

    Or you can just append to your string, like so:

    $('#CustomerDetails').load('TrackOrder1.asp?OrderID=' + $('#orderID').val() + '&EmailAddress=' + emailAddress);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to post some data built from some non-form elements but I can't
i have this form and im trying to get the value from the text
I'm trying sum many values from radio buttons, but I'm with some problems in
I'm trying to add values from array to DB, have tried many variuos examples
I'm trying to get my buffer copied into another buffer but I cant get
I'm trying to get a collection of values from an XML document: <root> <string
I have a form that I'm trying to get information from the user when
I'm learning Javascript for a project. I'm trying to try and get values from
I'm trying to get the values from multiple textboxes using JQuery. I'm a bit
I'm trying to capture values from the Fibonacci method and concatenate it to an

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.