日期:2014-05-16 浏览次数:20417 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
function gga(obj){
var index = $('.shu1').index($(obj).closest('.shu1'))
index = index + 1;
alert(index)
}
</script>
</head>
<body>
<div id="tupiankuanjiabh">
<div class="shu1">
<div class="tupiankuanjia">
</div>
</div>
<!--#shu1结束-->
<div class="shu1">
<div class="tupiankuanjia">
<form>
<input type="file" multiple="multiple" id="file0" onchange="gga(this)"/>
</form>
</div>
</div>
<!--#shu1结束-->
<div class="shu1">
<div class="tupiankuanjia">
</div>
</div>
<!--#shu1结束-->
<div class="shu1">
<div class="tupiankuanjia">
</div>
</div>
<!--#shu1结束-->
</div>
<!--tupiankuanjiabh结束-->
</body>
</html>