Jquery 如何在mvc中重新加载jtable?

Jquery 如何在mvc中重新加载jtable?,jquery,asp.net-mvc,Jquery,Asp.net Mvc,我有我的jtable,显示一个网格,其中列表从服务器加载。为此,我调用一个方法NotAllowedStudentsList,使用搜索按钮,通过调用相同的方法从服务器获取一个新列表。 我的搜索按钮看起来像 // Assign selected students $('#SearchFor').button().click(function () { var SearchForValue = $("#NotAllotedStudentsList").val();

我有我的jtable,显示一个网格,其中列表从服务器加载。为此,我调用一个方法NotAllowedStudentsList,使用搜索按钮,通过调用相同的方法从服务器获取一个新列表。 我的搜索按钮看起来像

  // Assign selected students
    $('#SearchFor').button().click(function () {
        var SearchForValue = $("#NotAllotedStudentsList").val();
        var StudentInputTypeValue = $("#InputType").val();
        alert(StudentInputTypeValue);
        var options = {};
        options.type = "POST";
        options.url = "/Dashboard/NotAllotedStudentsList/";
        options.data = JSON.stringify({ model: { SearchFor: SearchForValue, StudentInputType: StudentInputTypeValue } });
        options.dataType = "json";
        options.contentType = "application/json";
        $.ajax(options);

    });

我想在单击搜索按钮时显示新列表。但是,我的代码确实显示了旧的listdefault列表,该列表将在加载页面时显示。请告诉我如何实现此操作。

因此,您希望在用户键入查询字符串后加载jtable数据。@Outlooker:请参阅格式化的帖子。