title: How to set value in drop down menu
body: <p>I have that code:</p>
  
  <pre><code> &lt;/script&gt;
  &lt;!-- End HTML Area --&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td height='47' colspan='4'&gt;&lt;/td&gt;
  &lt;td colspan='13'  valign='top' align='right'&gt;
  &lt;table cellpadding='0' cellspacing='0' cols='1'  class='PSGROUPBOXWBO'  width='934'&gt;
  &lt;tr&gt;&lt;td class='PSGROUPBOXLABEL'  align='right'&gt;&lt;a name='DERIVED_RC_IRSL_MT_TRIPLE_GB' id='DERIVED_RC_IRSL_MT_TRIPLE_GB' tabindex='-1' href="javascript:submitAction_win6(document.win6,'DERIVED_RC_IRSL_MT_TRIPLE_GB');"&gt;&lt;img src='/cs/crmprod/cache/PT_COLLAPSE_HEB_1.gif' alt='הסתרת הנתונים' title='הסתרת הנתונים' border='0' /&gt;&lt;/a&gt;&amp;nbsp;סיווג פניה לאחר טיפול בלקוח&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td width='932'&gt;
  &lt;table  id='ACE_width' border='0' cellpadding='0' cellspacing='0' cols='10' width='932' class='PSGROUPBOX' style='border-style:none' &gt;
  &lt;tr&gt;
  &lt;td width='0' height='4'&gt;&lt;/td&gt;
  &lt;td width='70'&gt;&lt;/td&gt;
  &lt;td width='3'&gt;&lt;/td&gt;
  &lt;td width='246'&gt;&lt;/td&gt;
  &lt;td width='41'&gt;&lt;/td&gt;
  &lt;td width='3'&gt;&lt;/td&gt;
  &lt;td width='247'&gt;&lt;/td&gt;
  &lt;td width='49'&gt;&lt;/td&gt;
  &lt;td width='3'&gt;&lt;/td&gt;
  &lt;td width='270'&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td height='4' colspan='3'&gt;&lt;/td&gt;
  &lt;td rowspan='2'  valign='top' align='right'&gt;
  &lt;select name='MT_CASE_EXTRA_MT_CAT_SEQ_NUM' id='MT_CASE_EXTRA_MT_CAT_SEQ_NUM' tabindex='360' size='1'  class='PSDROPDOWNLIST' style="width:207px; " onchange="if (document.readyState == 'complete') submitAction_win6(this.form,this.name);" &gt;
  &lt;option value="0" selected='selected'&gt;&lt;/option&gt;
  &lt;option value="21"&gt;test&lt;/option&gt;
  &lt;option value="23"&gt;test2&lt;/option&gt;
  &lt;option value="64"&gt;test3&lt;/option&gt;
  &lt;option value="41"&gt;test4&lt;/option&gt;
  &lt;option value="61"&gt;test5&lt;/option&gt;
  &lt;option value="141"&gt;test6&lt;/option&gt;
  &lt;option value="22"&gt;test7&lt;/option&gt;
  &lt;option value="63"&gt;test8&lt;/option&gt;
  &lt;option value="24"&gt;test9&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I try to make JavaScript code. When the user copy+paste it to the address field in the browser the value I wanted will be automatically selected in the menu.</p>
  
  <p>Here is what I do:</p>
  
  <pre><code>javascript:function GetSelectedItem() {     
      var e = document.getElementById("selected24");
      var strSel = "The Value is: " + e.options[e.selectedIndex].value + " and text is: " + e.options[e.selectedIndex].text;
      alert(strSel);
      } 
  </code></pre>