Notes
Notes - notes.io |
ViewData["Title"] = "SMX Services Consulting - Export 480-PR Payroll Excel";
}
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Export 480-PR Payroll Excel</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "" }))
{
<div class="modal-body">
<div class="add-deducation-outer">
<div class="deducation-code">
<div class="row">
<div class="col-lg-12 ">
<div>
<div id="memoDialog" title="Edit Memo">
<textarea id="memoTextarea" maxlength="100" style="height: 100px; width: 200px;"></textarea>
</div>
<div style="text-align:center">
<button type="button" id="saveButton" class="btn btn-primary border-0" style="background-color:#080248;" data-bs-toggle="modal" data-bs-target="#exampleModal">
Save
</button>
<button type="button" id="cancelButton" class="btn btn-primary border-0" style="background-color:#080248;" data-bs-toggle="modal" data-bs-target="#exampleModal">
Cancel
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
}
</div>
</div>
<style>
.modal-content {
position: relative;
display: flex;
flex-direction: column;
width: 70%;
color: var(--bs-modal-color);
pointer-events: auto;
background-color: var(--bs-modal-bg);
background-clip: padding-box;
border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
border-radius: var(--bs-modal-border-radius);
outline: 0;
}
.modal-dialog {
position: relative;
width: auto;
margin: var(--bs-modal-margin);
pointer-events: none;
margin-left: 600px;
/*margin-left: auto;*/
}
</style> this is partial view
$(document).ready(function () {
$(document).on("focusout", ".classPr480Memo", function () {
var pr480MemoName = $(this).val();
$(this).closest('td').addClass('Pr480Memo');
$(this).closest('td').html(pr480MemoName);
});
$(document).on("click", ".Pr480Memo", function () {
debugger;
var pr480Memo = $(this).html();
$(this).closest('td').removeClass('Pr480Memo');
$("#memoTextarea").val(pr480Memo);
var url = "/PR480Payroll/MemoFor480PR"
$(".open480PRPopupForMemo").load(url, function () {
debugger;
$(".open480PRPopupForMemo").modal("show");
});
});
});
$(document).ready(function () {
$(document).on("click", "#saveButton", function () {
debugger;
var updatedMemo = $("#memoTextarea").val();
$(".Pr480Memo").html(updatedMemo);
$("open480PRPopupForMemo").modal("hide");
});
});
$(document).ready(function () {
$(document).on("click", "#cancelButton", function () {
debugger;
$("open480PRPopupForMemo").modal("hide");
});
}); this is jquery and this <div class="modal open480PRPopupForMemo" role="dialog" tabindex="-1" aria-labelledby="gridSystemModalLabel" data-bs-backdrop="static" data-bs-keyboard="false" style="padding-top: 80px;">
</div> div implements on view page
all above jquery function is not working please fix it
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team