module shop, flash message
This commit is contained in:
@ -16,8 +16,20 @@
|
||||
$('#sidebar').toggleClass('active');
|
||||
});
|
||||
|
||||
$("#closeAlertBtn").click(function () {
|
||||
$("#mainAlert").alert("close");
|
||||
});
|
||||
// $(".closeAlertBtn").click(function () {
|
||||
// console.log($(this).parentNode)
|
||||
// $(this).parentElement.alert("close");
|
||||
// });
|
||||
|
||||
})(jQuery);
|
||||
|
||||
window.addEventListener("load", function () {
|
||||
let closeBtn = document.querySelectorAll(".closeAlertBtn");
|
||||
closeBtn.forEach((item) => {
|
||||
item.addEventListener("click", closeAlert);
|
||||
});
|
||||
});
|
||||
|
||||
function closeAlert() {
|
||||
this.parentNode.setAttribute("style", "display: none;")
|
||||
}
|
||||
|
Reference in New Issue
Block a user