I am creating a div and then I write a message within the same to be disaplayed, but this time my div must also contain ID, which is dynamic, so I want to write message dynamically.
But I am not able to get how to write message within my jquery function. Below is my code:
$(function confirm () {
$('#update-dialog').dialog({
modal: true,
buttons: {
Ok: function () {
$(this).dialog('close');
}
}
});
});
And my Div is :
<div id="update-dialog" title="Mortgage Application Lock" style="display: none">
<%-- <span class="textfont">This Mortgage Application is currently in use.</span>--%>
</div>
It must have message from function not the hard written.
1 Answer