嗨,我有一张看起来像的表格。(我使用了sheepIt表单克隆,但我需要的是下面这样的内容)。
<div id="container">
<% for i in loop %>
//ex. 3 times loop could be test-1, test-2, test-3
<div id="test-[i]">
"some content"
</div>
<% end loop %>
</div>发布于 2015-11-28 13:04:55
我想这就是你要找的:
$('#container').children().each(function(){
var id = $(this).prop('id');
});https://stackoverflow.com/questions/33971140
复制相似问题