Click here to Skip to main content
15,943,061 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I am getting uncaught type Error: cannot read property ajax of undefined
Here is my Code:

function test()
        url: '@Url.Action("drawInputs")',
        data: { QueryName: App.About.getValue() }
    .done(function (result) {

                                        new ModelField("ID", ModelFieldType.String) { Mapping = "ID" },
                                        new ModelField("Name", ModelFieldType.String) { Mapping = "Name" }
                        .Listeners(li => { li.Select.Handler = "test()"; })

and I have in the controller action result named "drawInputs" that return partialview

1 solution

the error was that I am not including jquery.js thats why it is giving such error.
thank you
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900