I have function which returns partial view data as html
<input type="hidden" id="message" value="Hello" />
<div id="notifyRelease-modal">
<div class="container">
<div class="card">
<h5 class="card-header">
<div>Title @Model.Version</div>
<div class="date">
22 May 2022)
</div>
</div>
</div>
I want to access the hidden field value inside function and give alert.
Data returns following html
$.get("@Url.Action("NotifyNewRelease", "Support")",
function (data) {
$('.modal-body').html(data);
});