일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- docker example
- #3차원배열
- git flow
- mac terminal command
- #C++ 연산자함수오버로딩
- relative path
- hyperledger transaction
- #자바상속#자바이즈어#is~a
- html5 new tag
- 토큰경제
- html video
- border-box
- #CallByAddress
- html plug-in
- html charset
- #성적관리프로그램
- #JAVASCRIPT
- #2차원배열
- #C++ has~a
- html code
- 하이퍼레저패브릭
- #bubbleSort
- #android activity
- html object
- html id
- #다차원포인터
- html multimedia
- html youtube
- #binary
- #1차원배열
Archives
- Today
- Total
A sentimental robot
getElementsByTagName 본문
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 |
<html>
<title>10.19</title>
<head>
<script language="javascript">
function f1(){
var arr=document.getElementsByTagName("input");
// var arr=document.getElementsByName("radio");
for(var i=0; i<arr.length;i++){
if(arr[i].type=="radio"&&arr[i].checked){
alert(arr[i].value+"과목을 좋아하시군요!");
break;
};
}
}
</script>
</head>
<body>
<input type="radio" name="sub" value="HTML">HTML
<br>
<input type="radio" name="sub" value="CSS">CSS
<br>
<input type="radio" name="sub" value="HTML">javascript
<br>
<br>
<input type="Button" value="답안 제출" onclick="f1()">
</body>
</html>
|
cs |
'Web' 카테고리의 다른 글
Date (0) | 2018.10.19 |
---|---|
onload (0) | 2018.10.19 |
Background color (0) | 2018.10.19 |
Javascript Array (0) | 2018.10.19 |
Calculator ver.2 (0) | 2018.10.18 |