日期:2014-05-16 浏览次数:20505 次
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="../lib/jquery/jquery-1.9.1.js"></script>
</head>
<body>
<div id="div1">
<textarea rows="1" cols="2">A1</textarea>
<div>
<textarea rows="1" cols="2">b1</textarea>
</div>
<textarea rows="1" cols="2">A2</textarea>
<p>
<textarea rows="1" cols="2">c1</textarea>
</p>
</div>
<script type="text/javascript">
var $a = $('#div1');
var $b = $a.find('>textarea');
</script>
</body>
</html>