Ajax problem can't figure out
I have a slect menu that i am passing value to ajax ...this is giving me constant error but should be simple. Does anyone see what I'm doing wronmg. Using jquery-1.10.2.js with
http://code.jquery.com/jquery-migrate-1.2.1.js
CODE:
$("#Dcust").change(function () {
$("#Dcust option:selected").each(function () {
var BCN = $("#Dcust").val();
var request= $.ajax({
type: "GET",
url: "PM_incl_FiscalPeriod.asp?BCN="+BCN
});
request.done(function(msg){
$("#FIDcontainer").html(msg);
});
request.error(function(){
alert("error");
});
});
})