Im trying to call this script once the ajax link is clicked but for some reason it won't call #myLink.
@Html.ActionLink(" ", "DeleteRecord", new { id = item.JPAppId }, new { @class = "fa fa-trash", id = "myLink" })
<script type="text/javascript">
$("#myLink").click(function (event) {
console.log("Method called");
});