あなたがこれを持っているとしましょう:
<ul>
<li>[foo] more stuff here</li>
<li>[bar] stuff here</li>
<li>[123] stuff here</li>
</ul>
そしてあなたはこれが欲しい:
<ul>
<li id="foo">more stuff here</li>
<li id="bar">stuff here</li>
<li id="123">stuff here</li>
</ul>
jQueryを使用して、これを取得する最も簡単な方法は何ですか?