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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:31:10+00:00 2026-05-13T13:31:10+00:00

If I use a single statement, then it works well. I mean if I

  • 0

If I use a single statement, then it works well. I mean if I use multiple $.post, as shown below, it fills both the DropDowns with the data of the second $.post. Why? The .php file contains code to dynamically fill DropDown.

$.post("../Lib/filldropdown.php", 
  {DropDownControlName: "inMemberOf", SqlQuery: "SELECT * FROM electioncategorymaster" },
  function(data){
    $('#divMemberOf').html(data);
});

$.post("../Lib/filldropdown.php", 
  {DropDownControlName: "inWard", SqlQuery: "SELECT * FROM wardconstituencymaster"},
  function(data){
    $('#divWard').html(data);
});

Kindly ignore the Sql Injection issue above.

  • 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-13T13:31:11+00:00Added an answer on May 13, 2026 at 1:31 pm

    Are you sure it’s not a server caching issue? Open up FireBug and inspect the responses of the two POST requests. I have a feeling that you’ll see that the second request is returning response data from the first request.

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

Sidebar

Related Questions

i want use single quotations inside a transact sql statement, then execute that statement.
i use this statement for a single where condition ('SELECT * FROM users WHERE
I want to use a single Doctrine install on our server and serve multiple
I try to use single quotes as much as possible and I've noticed that
Currently I use a single equation with different combination of known/unknown parameters. As I
I want to use a single font named Algerian across my whole website. So,
If I import and use a single class from another package, will it include
I am trying to use a single RouteURL to route to different pages dependent
I am going to use a single LOGIN database (Sql forms authenication) to hold
Is there a reason to use a single incrementing field for a primary key

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.