Q:

Call Controller action from JavaScript

I Have Controller action in my Bank Controller ("BankController") name Add that illustrate below  :
public ActionResult Add()
{
    return View();
}

Now How can i call my action from java script.
Note : My action return type is "ActionResult"

A:

Just use an AJAX call:
<div id='some-container'>Loading...</div>

<script type='text/javascript'>
    $(document).ready(function() {
        $.get('@Url.Action("Add", "BankController")', function(viewResult) {
            $("#some-container").html(viewResult);
            alert(viewResult);
        });
    });
</script>

