Multiple Url.Action() does not work at same time in script. Only the first Url.Action() works. I need to check a condition
$(document).ready(function action() {
$("#Action").click(function myfunction() {
if ($('[id="Accessory0"]').is(':checked')) {
@Url.Action("Submit_Acc", "AccessoryManager");
} else if ($('[id="Accessory1"]').is(':checked')) {
@Url.Action("Submit_AccW", "AccessoryManager");
}
});
});