title: Open select link in a new window
body: <p>I have an unordered list that is being converted into a select list with jQuery.  Code I am using is pasted below:</p>
  
  <pre><code>$("&lt;select /&gt;").appendTo(".region .links");
  // Create default option "Go to..."
  $("&lt;option /&gt;", {
      "selected": "selected",
          "value": "",
          "text": "Links"
  }).appendTo(".links select");
  $(".links .menu li a").each(function () {
      var el = $(this);
      $("&lt;option /&gt;", {
          "value": el.attr("href"),
              "text": el.text()
      }).appendTo(".region select");
  });
  $(".region select").change(function () {
      window.location = $(this).find("option:selected").val();
  });
  </code></pre>
  
  <p>This code then generates the following:</p>
  
  <pre><code>&lt;select&gt;
  &lt;option selected="selected" value=""&gt;Links&lt;/option&gt;
  &lt;option value="http://www.linkvalue.com"&gt;Link1&lt;/option&gt;
  &lt;option value="http://www.linkvalue2.com"&gt;Link2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I need to change javascript so that all links open in  new window. How would i go about it?</p>