解答例

<!DOCTYPE html>
<html lang="ja-JP">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=yes,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.5">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(function(){
	$("dt").click(function(){
		$("dd").css("display","none");
		$("+dd", this).css("display","block");
	});
});
</script>
<style>
dt{
	cursor:pointer;
}
dd{
	display:none;
}
</style>
</head>
<body>
	<dl>
		<dt>dt要素</dt>
		<dd>dd要素 dd要素 dd要素 dd要素 dd要素 </dd>
		<dt>dt要素</dt>
		<dd>dd要素 dd要素 dd要素 dd要素 dd要素 </dd>
		<dt>dt要素</dt>
		<dd>dd要素 dd要素 dd要素 dd要素 dd要素 </dd>
		<dt>dt要素</dt>
		<dd>dd要素 dd要素 dd要素 dd要素 dd要素 </dd>
	</dl>
</body>
</html>

inserted by FC2 system