async function showNoticeDetails(noticeId) { try { // Fetch details using AJAX (you can use fetch API, jQuery AJAX, Axios or any other method) const response = await fetch(`/ulist/Notice/details?id=${noticeId}`); const data = await response.text(); // Update modal content document.querySelector("#popupModel").innerHTML = data; // Show the modal $("#popupModel").modal("show"); } catch (error) { console.error("Error fetching notice details:", error); } }