I have searched on the internet for a while now to try and find something similar to help me without succes.
The code I have written below works perfectly on my local host but not on the server, can anyone please offer some advice, happy to add any extra code if required.
$(function() {
$("#SelectedStillage").on("change", function() {
var orderid = '@ViewBag.SalesOrder';
var stillageid = $(this).val();
$.ajax({
type: "GET",
url: "/DespatchPrintLabels/_itemsPackedInStillage",
data: {
orderID: orderid,
stillageID: $(this).val()
},
success: function(data) {
$("#target").html(data);
},
error: function() {
alert("Something went wrong ");
}
});
});
})
采用
url: '@Url.Action("_itemsPackedInStillage" "DespatchPrintLabels")'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.