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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:09:33+00:00 2026-06-04T19:09:33+00:00

How do i use jquery ajax .load function for dropdownlist? this is my php

  • 0

How do i use jquery ajax .load function for dropdownlist?

this is my php page

<? 
$query="SELECT Name FROM supplier";
$result=mysql_query($query);
?>
<select name="ddlSupplier">
<option>Supplier Name</option>
<? while($row=mysql_fetch_array($result)) { ?>
<option value><?=$row['Name']?></option>
<? } ?>
</select>

how do i get value after load?

$("#ddlSupplier").val()? this.val()?
  • 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-04T19:09:35+00:00Added an answer on June 4, 2026 at 7:09 pm

    I don’t have your markup on which you call .load(), so I’m gonna use #placeholder as the selector to which you will be injecting the dropdown:

    $('#placeholder').load('yourphppage.php', function(html) {
       $(this).find('select[name=ddlSupplier]').val();
    });
    

    Note that the callback is called after HTML insertion, so you can do find(). Docs:

    If a “complete” callback is provided, it is executed after
    post-processing and HTML insertion has been performed. The callback is
    fired once for each element in the jQuery collection, and this is set
    to each DOM element in turn.

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

Sidebar

Related Questions

In jQuery, I know I can use the $.ajax function to load a page's
I use jQuery and AJAX to load content from links and forms into a
When i use jquery's $.post ajax function, page freezes for 2-3 seconds and then
I load content to my popup with jQuery Ajax load function and I use
I use jQuery ajax. I have created function: getDatalist() . This function displays a
I need to know how to use jQuery's load AJAX function to get the
I am trying to use jquery ajax to get data from a php file.
Use jquery + php. Doing custom AJAX captcha. i.e user clicks on image, it
I was wondering if it would be possible to use jQuery's ajax function to
So I am using load functions of jQuery to use ajax on my pages.

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.