我需要使用 div name 获取 div id 及其子类名称。但是 div Id 将始终不同且唯一。
HTML
<div class="diagram" id="12" >
<div class="121">
...
</div>
</div>
<div class="diagram" id="133" >
<div class="33">
...
</div>
</div>
<div class="diagram" id="199" >
<div class="77">
...
</div>
</div> So on..
查询
$(function(){
//i need to pass to values to the function in the following way
o.circle("12","121");
o.circle("133","33");
o.circle("199","77");
//So on..
});
请帮帮我