eachループ内の一連の要素を次のように処理しています
function test(){
$('#first li').each(function(n){$(this).//here is the jQuery effects for nth li
\\ here I want to process nth li of id="second" too
});
別のIDのn番目の要素も同時に処理するにはどうすればよいですか?
liたとえば、DIV の最初の sfirstとsecond;に対して jQuery エフェクトを作成したいとします。次に、li両方の DIV の秒の s。
<div id="first">
<ul>
<li>something</li>
<li>something</li>
<li>something</li>
</ul>
</div>
<div id="second">
<ul>
<li>to be effect with 1st li of FIRST</li>
<li>to be effect with 2nd li of FIRST</li>
<li>to be effect with 3rd li of FIRST</li>
</ul>
</div>