2
Answers

Unable to Load Partial View

boycoto

boycoto

11y
825
1
I am currently stuck with loading a partial view using a radio button, can anyone help me. Below is my jquery.
<script type="text/javascript" language="javascript">
    $('input:radio[name=CreateMenu]').change(function () {
        var url = '';
        if ($(this).val() == "CreateMenu") {
            url = '@Url.Action("MenuEntry", "EnvironmentMaintenance")';   
        }
        else if ($(this).val() == "CreateSubMenu") {
            url = '@Url.Action("SubMenuEntry", "EnvironmentMaintenance")';
        }
        $('#CreateMenuPanel').load(url);
    });
</script>
Answers (2)