title: How to push item values to extreme top/bottom in selectbox?
body: <p>I am researching and testing with forms. So far, I succeeded in moving items in select box list up and down one by one with <a href="http://jsfiddle.net/Shobhit_Sharma/b7Yct/2/" rel="nofollow">following fiddle</a>.</p>
  
  <p>Instance of code (to move up):</p>
  
  <pre><code>function moveUp() {
  $("#list-box option:selected").each(function () {
      var listItem = $(this);
      var listItemPosition = $("#list-box option").index(listItem) + 1;
  
      if (listItemPosition == 1) return false;
  
      listItem.insertBefore(listItem.prev());
    });
  }
  </code></pre>
  
  <p>But now I need to move a selected value, either to be at extreme top in the list or at very bottom. Please try to experiment up with this fiddle and suggest me possible <a href="http://api.jquery.com/category/traversing/tree-traversal/" rel="nofollow">jQuery tree traversal</a> method if it applies.</p>
  
  <p>Thanks in advance! </p>