forum

home / developersection / forums / how to add loader in mvc?

How to add loader in mvc?

Sunil Singh 2722 24-Jun-2017

I want to show Loader when button is clicked before data is displayed. 

Below is my view code I don’t know what should be the controller code and jquery.

Please help me.

<body>
    @using (Ajax.BeginForm("Loader", "Home", new AjaxOptions { HttpMethod = "POST",}))
    {
        <input type="submit" value="Please click" />
    }
 
    <div id="divLoading">
           </div>
 
    <div id="target">
           </div>
</body>


Updated on 27-Jun-2017
Sunil Singh

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By