[jQuery] Selecting attributes of an element

[jQuery] Selecting attributes of an element


Excuse my newbiness, how do I select a particular attribute of an
element?
Example:
<li test1 ="foo" test2="bar"> foobar</li>
how do I select and return the test1 attribute?
Thanks