Hello,
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: