jquery遍历:next()和nextAll()方法。实例如下:
代码如下:
<html>
<head>
[removed][removed]
[removed]
$(document).ready(function(){
//$(“div”).click(function(){alert($(this).next().text());});
//$(“div”).click(function(){alert($(this).nextAll(