title: Trying to move one option to another select list
body: <p>I've tried searching this and all the answers are way above my head, and are just confusing and frustrating me... All I'm trying to do is make an option from the left list that is selected, move to the right list when I click a button. This is the script I'm attempting to use, and it isn't working for me...</p>
  
  <pre><code>function moveRight() {
  var selItem = document.forms[0].leftList.selectedIndex;
  
   if (selItem == -1) {
    window.alert("You must first select an item on the left side.")
   }
  
   else {
    var selText = document.forms[0].leftList[selItem].text;
    var selValue = document.forms[0].leftList[selItem].value;
    var nextItem = document.forms[0].rightList.length;
  
    document.forms[0].rightList[nextItem].text = selText;
    document.forms[0].rightList[nextItem].value = selValue;
   }
  }
  </code></pre>
  
  <p>Any thoughts on how to make this work without over-complicating the matter?</p>