<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("#up").click(function(){
var afirst=$(".imglist a:first-child").html();
alert(afirst);
});
});
</script>
</head>
<body>
<a href="javascript:void(0);" id="up">往前走</a>
<div class="imglist">
<a href="javascript:void(0);" title='/UpLoadFiles/memberpic/2012071211033214.jpg'>
111
</a>
<a href="javascript:void(0);" title='/UpLoadFiles/memberpic/2012071211032801.jpg'>
222
</a>
<a href="javascript:void(0);" title='/UpLoadFiles/memberpic/2012071211031878.jpg'>
333
</a>
<a href="javascript:void(0);" title='/UpLoadFiles/memberpic/2012071208381331.jpg'>
444
</a>
<a href="javascript:void(0);" title='/UpLoadFiles/memberpic/2012071208380428.jpg'>
555
</a>
</div>
<a href="javascript:void(0);" id="next">往后走</a>
</body>
</html>
问题是,现在只能取到 111
我想取到 :<a href="javascript:void(0);" title='/UpLoadFiles/memberpic/2012071211033214.jpg'>
111
</a>
求同志们赐教……
GCT1015
慕婉清6462132
达令说
胡说叔叔
慕莱坞森