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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:18:02+00:00 2026-05-17T00:18:02+00:00

i tried to change an cascading dropdownlist example http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx But i get always the

  • 0

i tried to change an cascading dropdownlist example http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx

But i get always the message “Microsoft JScript runtime error: Object expected”

Maybe someone has an idea?

<asp:Content ID="Content1" ContentPlaceHolderID="contentplaceholderHEAD" runat="Server">
</script src="~/_scripts/jQuery-1.4.2.js" type="text/javascript">
<script language="javascript">
    $(document).ready(function () {
        $("#<%=Ticket_ArtDropDownList.ClientID %>").change(function() {
            $("#<%=Ticket_StatusSelect.ClientID %>").html("");
            var Ticket_Art = $("#<%=Ticket_ArtDropDownList.ClientID %> > option:selected").attr("value");
            if (Ticket_Art != 0) {
                $.getJSON('Ticketdetails.ashx?Ticket_Art=' + Ticket_Art, function(cities) { //wozu dient dieses "cities" ?
                    $.each(cities, function() {
                        $("#<%=Ticket_StatusSelect.ClientID %>").append($("</option>").val(this['Ticket_Art']).html(this['Text']));
                    });
                });
            }
        });
    });
</script>

Can’t tag all my code as “Sourceode” because its not working corectly..

<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" runat="Server">
<div>

Ticket_ID:
Ticket_Art:

Ticket_Status:

  • 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-17T00:18:03+00:00Added an answer on May 17, 2026 at 12:18 am

    What stands out at me is your script tag…I don’t believe jQuery is being included correctly, this:

    </script src="~/_scripts/jQuery-1.4.2.js" type="text/javascript">
    

    Should be:

    <script src="~/_scripts/jQuery-1.4.2.js" type="text/javascript"></script>
    

    Also check your source, make sure the ~/ is being resolved to the correct directory in the final HTML. Also in your loop, $("</option>") should be: $("<option/>").

    The last suggestion is you can use .val() directly on a <select> to get the current value, like this:

    var Ticket_Art = $("#<%=Ticket_ArtDropDownList.ClientID %>").val();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to listen file change event in BlackBerry base on FileExplorer example, but
I've tried achieving a hover/selected color change for a particular field, but I'm thinking
I tried to change the width but it only changes the width of the
I tried to change the date format of this countdown jQuery script from local
Originally i tried to change color of pen in TextDecoration by trigger, but when
I tried to change my ip then share it again but still doesn't count.
I tried to change the width of seekbar and made it thin. But my
have tried to change the timezon in android-emulator but it doesn't work. I write
I tried to change the image src of ImageButton using jQuery then it fails
See the title. I've tried to change component orientation to RIGHT_TO_LEFT , but that

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.