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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:24:21+00:00 2026-05-30T16:24:21+00:00

Want to pass 4 values in AJAX parameter.First three are passing properly but the

  • 0

Want to pass 4 values in AJAX parameter.First three are passing properly but the fourth one giving problem.i came to know after displaying alert in AJAX

<tr align="left">
                                    <td style="background-color:#1569C7;color:white;font-weight:bold;font-size:110%;border-style:outset;"><center><b>Test Conducted</b></center></td>
                                    <td><select onchange="javascript:type123(document.getElementById('fodate').value,document.getElementById('todate').value,document.getElementById('product').value);" id="testcond" name="testcond">
                        <option>--Select--</option>

                </select></td>
                                </tr>

AJAX CODE:

<script language="javascript">
            var xmlHttp1=null;
            function type123(obj,obj1,obj2)
              {
            //alert(this.value);
            var type_value=document.getElementById('testcond').options.selectedIndex.value;
            var val1=obj;
            var val2=obj1;
            var val3=obj2;
           // var val4=obj3;
            alert(val1);
            alert(val2);
            alert(val3);
            alert(type_value);
  • 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-30T16:24:23+00:00Added an answer on May 30, 2026 at 4:24 pm

    Instend of

    var type_value=document.getElementById('testcond').options.selectedIndex.value;
    

    You can try this one to get selected value of Combo-Box

    var type_value=document.getElementById('testcond').value;<br/>alert(type_value);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to pass a dynamic parameter with qTip, but it fails. my_ajax_controller.php just
I want to pass some values from my Game extends Activity to Screen extends
I want to pass the values from MapOverlay class to another class. I tried
I want to pass around some values in an array that will always be
I want to pass an enum value as command parameter in WPF, using something
I have an ajax autocomplete extender. I want to pass the value of the
Need help..how can I get the parameter pass by the ajax.. url: test.htm?a=1&b=2&c=3 I
I pass parameter with url called var which is containing value 'event'. I want
i want to pass a function as an parameter if an element was clicked.
I have this snippet of code below. I want to pass the value of

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.