Last active
June 9, 2021 07:59
-
-
Save cyberfly/ecd1e96b9ea21ce59d2db790906611d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector('.btn-create').addEventListener('click', function (e) { | |
getModalContent(e, this); | |
}); | |
// test | |
var edit_modal_btn_list = document.querySelectorAll('.btn-edit'); | |
edit_modal_btn_list.forEach(function (edit_btn, index) { | |
edit_btn.addEventListener('click', function (e) { | |
getModalContent(e, this); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment