我有一个jquery脚本来生成图像的标题.但是现在我想用标题计算元素,并将相应的数字作为类添加到图像类中.我知道如何计算(.length)但我如何使用每个元素中的适当数字?
http://jsbin.com/ugemih/6/edit#javascript,html,live
BR
css jquery count caption
caption ×1
count ×1
css ×1
jquery ×1