I searched the database, and I found someone talking about it but not demonstrating the fact Adding a onclick dynamically using an Html Helper in MVC
I would like to trigger ajax on a check box onclick event
@Html.CheckBoxFor(model => model.HasChildren, new { onclick = "return Triger2();" })
Can I execute an AJAX trigger, or can someone please direct me to the jQuery method where I would catch the click event. Then how would it execute the AJAX trigger?
<div id="Stream1"> @Ajax.ActionLink("Click", "Triger2", new AjaxOptions
{
UpdateTargetId = "Stream1",
InsertionMode = InsertionMode.Replace,
HttpMethod = "Get",
LoadingElementId = "progress"
})
</div>