这是我的 ajax 脚本,这是错误 Uncaught Error: Syntax error, unrecognized expression the code works and removes the second drop down menu but does not append the updated 1
$(document).ready(function(){
$('#Channel_dropdown').change(function(){
var channel = $('#Channel_dropdown').val()
alert(channel);
$.ajax({
url: "/advanced_subchannel/",
type: "GET",
data: {
'ch_id' : channel,
},
success:function(req){
$('#subChannel_dropdown').remove();
$(req).find('#advancedsearch_subchannels').each(function(i){
$('#advancedsearch_subchannels').append($(req).find('#subChannel_dropdown'));
});
}
});
});
});