File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ alert(ageElems[0]); // [object HTMLInputElement]
155155
156156### input과 textarea
157157
158- input과 textarea 요소의 값은 `input.value` (string)로 얻을 수 있고, 체크박스와 라디오 버튼의 경우 `input.checked`(boolean)를 사용해 선택 여부를 얻을 수 있습니다.
158+ input과 textarea 요소의 값은 `input.value` (string)로 얻을 수 있고, 체크박스와 라디오 버튼의 경우 `input.checked`(boolean)를 사용해 선택 여부를 확인할 수 있습니다.
159159
160160이렇게 말이죠.
161161
@@ -182,7 +182,7 @@ input.checked = true; // 체크박스나 라디오 버튼에서 쓸 수 있습
182182
183183이 세 프로퍼티를 응용하면 아래와 같은 세 가지 방법으로 `<select>`의 값을 설정할 수 있습니다.
184184
185- 1. `select.options`에서 조건에 맞는 `<option>` 요소를 찾아 `option.selected`속성을 `true`로 설정합니다.
185+ 1. `select.options`등에서 조건에 맞는 `<option>` 요소를 찾아 `option.selected`속성을 `true`로 설정합니다.
1861862. `select.value`를 원하는 값으로 설정합니다.
1871873. `select.selectedIndex`를 원하는 option 번호로 설정합니다.
188188
Original file line number Diff line number Diff line change 133133예시를 살펴봅시다. 첫 번째 항목을 클릭하고 ` key:Tab ` 키를 눌러보세요.
134134
135135``` html autorun no-beautify
136- 첫 번째 항목을 클릭하고 Tab 키를 눌러보면서 포커스 된 요소 순서를 눈여겨보세요.
137- 참고로 탭을 많이 누르면 예시 밖으로 포커스가 이동하니, 주의하세요.
136+ 첫 번째 항목을 클릭하고 Tab 키를 눌러보면서 포커스 된 요소 순서를 눈여겨보세요. 참고로 탭을 많이 누르면 예시 밖으로 포커스가 이동하니, 주의하세요.
138137<ul >
139138 <li tabindex =" 1" >일</li >
140139 <li tabindex =" 0" >영</li >
You can’t perform that action at this time.
0 commit comments