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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:50:24+00:00 2026-06-18T12:50:24+00:00

I know this question might be repeated but my query is different let me

  • 0

I know this question might be repeated but my query is different let me explain, I have a drop down in page and by selecting value in drop down list,and I click on submit button.. I want by click on submit button I need to load partial view in tag that is list of records of selected drop down list value.

i tried this :

$("#btnclick").click(function () {
            $.ajax({
                type: 'POST',
                url: '@Url.Content("~/Search/MDLNoDataList")',
                data: mdlno,
                success: function (data) { $("#viewlist").innerHtml = data; }
            });
        });

but not getting result And I m using these many jquery plugins

<script src="../../Scripts/jquery-migrate-1.0.0.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
  • 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-18T12:50:25+00:00Added an answer on June 18, 2026 at 12:50 pm

    If i understand correctly, below is what you need to do.

    HTML Example:

    <div id="records">
    </div>
    <select id="ddlRecordType">
    <option value="1">Type 1</option>
    <option value="2">Type 2</option>
    </select>
    <input type="submit" value="Load Records" id="btn-submit" />
    

    jQuery Code

    $(document).ready(function(){
     $('#btn-submit').click(function(){
      var selectedRecVal=$('#ddlRecordType').val();
       $('#records').load('/LoadRecords?Id='+selectedRecVal);
       return false; // to prevent default form submit
     });
    });
    

    Here ?Id= is the query string parameter passed to server to get
    the selected item in dropdown.

    Edit: The below answer was added, as the question content changed from initial post

       $("#btnclick").click(function () {
            $.ajax({
                type: 'POST',
                url: '@Url.Action("MDLNoDataList","Search")',
                data: mdlno,
                success: function (data) { 
                  // $("#viewlist")[0].innerHtml = data; 
                   //or 
                   $("#viewlist").html(data);
                 }
            });
          return false; //prevent default action(submit) for a button
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question might be repeated ... But I have query like this,
I know this question might have already been discussed a thousands of times but
I know that this question might have been asked like 100 times, but, believe
I know this question might be repeated many times but would really appreciate any
I know this question might have been asked a few times already, but I
i know this question might be too easy, but i have no idea how
I know this question might be repeated. But my issue is, I want my
I know this question might sound quite silly, but I somehow found myself stuck
I know this question might be little silly but I can't seem to find
This question might not seem very technical but, out of curiosity,I want to know

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.