I have a menu:
<ul id="test-ul">
<li>test</li>
<li>test2</li>
</ul>
How do i add the following HTML markup before the first li and after the last li:
 <li class="first">
      <img src="http://i48.tinypic.com/sosmck.jpg" width="27" height="15"  />
    </li>
<li class="last">
      <img src="http://i48.tinypic.com/sosmck.jpg" width="27" height="15"  />
    </li>
using jquery ?



ul) should contain onlylielements inside.$("#test-ul").append("<li />");$("#test-ul").prepend("<li />");