//연습문제 1-선택된 레코드 삭제하기:event target
window.addEventListener("load",function(){
var section = document.querySelector("#section1-1");
var delBtns = section.querySelectorAll(".del-button");
var noticeList = section.querySelector(".notice-list");
noticeList.onclick = function(e){
//console.log(e.target.nodeName);
if(e.target.nodeName != "INPUT") return;
e.target.parentElement.parentElement.remove();
}
});