I am trying to figure out how to pass the @item.Id value as a parameter in the click function for a button. Here is the code snippet:
<button id="buttonEdit" style="color:darkgreen" data-toggle="modal" data-target="#EditRecord">@item.Id</button>
...
<script>
$(document).ready(function () {
$("#buttonEdit").click(function () {
$("#Id").val('parameter');
});
});
</script>