<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>CSS_P108</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('input type').on('submit')function(){
$('#dongguen').submit(function (event) {
var name = $('#movie').val();
var hobby = $('#hobby').val();
event.preventdefault();
});
});
});
</script>
</head>
<body>
<form id = "dongguen">
<table>
당신이 가장 좋아하는 영화 장르는 ?<br>
<tr id = "movie">
<input type="radio" name="movie" value="drama">드라마
<input type="radio" name="movie" value="horror"> 공포
<input type="radio" name="movie" value="action"> 액션
<input type="radio" name="movie" value="ero" checked> 에로</p>
</tr>
<hr noshare = noshared align="center" size=5px width="70%" >
<p><tr id "hobby">
<input type="checkbox" name="hobby" value="read"> 독서
<input type="checkbox" name="hobby" value="sleeping" > 오수
<input type="checkbox" name="hobby" value="movie"> 영화가상
<input type="checkbox" name="hobby" value="music"> 음악감상
<input type="checkbox" name="hobby" value="playing" >운동
<input type="checkbox" name="hobby" value="internet" checked> 인터넷 </p>
</tr>
</table>
<p>
<p>
<input type="submit" value="전송" onClick="alert(movie+':'+hobby)">
<input type="reset" value="취소"> <p>
</form>
</body>
</html>
[object RadioNodeList]:[object RadioNodeList] 뜨는대
우쨰야 재대로 나오게돼는기 갈쳐줘 행님들 열심이 나 공부한당 ~~~~~~
tr태그에 id 준이유는 ㅜㅜ 처음이라성 이래야 인식돼는줄알아서영 ㅋㅋㅋㅋ value 값받고싶은데 어떻개행 미치갰엉
링크는 어떻게주나요
https://jsfiddle.net/dlehdrms0515/mc85xmuo/#&togetherjs=ehKjlOwC8y
이게맞나요
감사해용 좋은공부가 되었습니다