링크에서 체크라디오에 따라 하위메뉴가 활성화되고 안되고를 만들고 싶은데
어떻게 하는지를 몰라서요
예제로 알려 주실분!! 부탁드립니다
어떻게 하는지를 몰라서요
예제로 알려 주실분!! 부탁드립니다
댓글 1개
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
function sec_chk(c){
f = document.all.sec_form;
if (c==1)
{
f.sec_1_1.disabled = false;
f.sec_1_2.disabled = true;
}
else{
f.sec_1_1.disabled = true;
f.sec_1_2.disabled = false;
}
}
</script>
</head>
<body>
<form name="sec_form" method="post" action="?" enctype="multipart/form-data" onsubmit="return send();">
<input type="radio" name="sec" value="1" onclick="sec_chk(1)">
33㎡</td>
<input type="radio" name="sec" value="2" onclick="sec_chk(2)">
66㎡</td>
<select name="sec_1_1">
<option value="0"> 면 제 </option>
<option value="400">400</option>
</select></td>
<select name="sec_1_2" >
<option value="0"> 면 제 </option>
<option value="400">400</option>
</select>
</form>
</body>
</html>
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
function sec_chk(c){
f = document.all.sec_form;
if (c==1)
{
f.sec_1_1.disabled = false;
f.sec_1_2.disabled = true;
}
else{
f.sec_1_1.disabled = true;
f.sec_1_2.disabled = false;
}
}
</script>
</head>
<body>
<form name="sec_form" method="post" action="?" enctype="multipart/form-data" onsubmit="return send();">
<input type="radio" name="sec" value="1" onclick="sec_chk(1)">
33㎡</td>
<input type="radio" name="sec" value="2" onclick="sec_chk(2)">
66㎡</td>
<select name="sec_1_1">
<option value="0"> 면 제 </option>
<option value="400">400</option>
</select></td>
<select name="sec_1_2" >
<option value="0"> 면 제 </option>
<option value="400">400</option>
</select>
</form>
</body>
</html>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284438 | |
| 284437 | |
| 284435 | |
| 284430 | |
| 284420 | |
| 284417 | |
| 284409 | |
| 284401 | |
| 284399 | |
| 284397 | |
| 284380 | |
| 284378 | |
| 284371 | |
| 284370 | |
| 284366 | |
| 284364 | |
| 284360 | |
| 284357 | |
| 284355 | |
| 284354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기