JavaScript
061020 JavaScript: 모의시험 오답
유순이
2020. 10. 6. 18:29
뭔 테스트
<form action="./index.html" method="post">
: 1번 요구사항이었는데, 잘못 이해해서 추가하는 걸 깜빡했다
checked = $("input[type=checkbox]:checked").length
if(!checked){
alert("hey, you must check at least one interest")
}
: 최소 1개 체크하는 거 select를 생각 못했네,,,
<tr>
<td colspan="2">
<input type="submit" id="submit">
<input type="reset" id="reset">
</td>
</tr>
: 셀 가로 병합하고 거기 안에다가 버튼 넣는 게 정렬하기 좋다던데?
modal
.modal {
width:100%;
height:100%;
display: none;
background-color: rgba(20, 50, 30, .5);
/*opacity: 0.3;*/ /*이렇게 주면 안에도 영향을 미치네 그래서 rgba로 background-color주셨네*/
/*빠뜨린 부분*/
z-index: 3;
position: fixed;
left: 0;
top: 0;
}