I\'m new to Ajax and I\'m trying to disable a checkbox if certain items are selected in a dropdown. I need to pass in the mlaId to the GetMlaDeliveryType(int Id) method in
Set data in the Ajax call so that its key matches the parameter on the controller (that is, Id):
data
Id
data: { Id: mlaId },
Note also that it's a better practice to use @Url.Action(actionName, controllerName) to get an Action URL:
@Url.Action(actionName, controllerName)
url: '@Url.Action("GetMlaDeliveryType", "Recipients")'