Users Pricing

forum

Home Forums How can I dynamically get data from ASP.NET MVC controller to jQuery? – MindStick

How can I dynamically get data from ASP.NET MVC controller to jQuery?

Manish Kumar 1843 11 Jun 2017

have a jQuery function that on the click of a div element, gets that elements predefined ID value. What I want to do is load that parent elements children, so I'm planning to dynamically build some html using jQuery. What I don't know how to do, is make a call to a controller (mvc) and have the controller return a collection to the client.

I know how to send a JSON object from jQuery to a controller, but not the other way around.

Thanks in advance!


1 Answers

Sunil Singh 11 Jun 2017 Accepted Answer
Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md