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..
Jクエリ
$(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..
});
私を助けてください