我正在制作动态画廊
这是我的代码的一部分
<li id="pic_0">
<img src="http://localhost/wpff/wp-content/themes/twentyeleven/images/family/small/012_family-portrait_people_sea.jpg" name="012_family-portrait_people_sea.jpg" horz="y">
</li>
<li id="pic_1">
<img src="http://localhost/wpff/wp-content/themes/twentyeleven/images/family/small/011_family-portrait_people_sea.jpg" name="011_family-portrait_people_sea.jpg" horz="y">
</li>
<li id="pic_2">
<img src="http://localhost/wpff/wp-content/themes/twentyeleven/images/family/small/010_family-portrait_mother-son_sea.jpg" name="010_family-portrait_mother-son_sea.jpg" horz="y">
</li>
动态生成的文件名。我想使用 jquery 获取知道文件名(存储在 Bigpic 变量中的名称值)的“horz”值
var horz = $('name='+Bigpic).attr('horz');
无法正确处理!请帮忙。
谢谢。阿列克谢