title: Select attribute not getting set
body: <p>None of these set the value to contain the word selected. This means that when the select list gets passed back to php the selection become 'undone':</p>
  
  <pre><code> jQuery("#tag_photo2").val("&lt;?php echo $pg-&gt;m2; ?&gt;").attr("selected",true);
      jQuery("#tag_photo2").val("&lt;?php echo $pg-&gt;m2; ?&gt;").attr('selected','selected');
      jQuery("#tag_photo2").val("&lt;?php echo $pg-&gt;m2; ?&gt;").prop("selected",true);
  </code></pre>
  
  <p>The following shows that the selection is actually known:</p>
  
  <pre><code>jQuery("#value2").html($("#tag_photo2 :selected").text() + " (VALUE: " + $("#tag_photo2").val() + ")");
  </code></pre>
  
  <p>as I get 'CURRENT SELECTED: test123 (VALUE: 2)' displayed.  </p>
  
  <p>The selection here is correct, but if sent to php it get lost.</p>
  
  <p>Tried with jQuery 1.8.2 and 1.7.1, Firefox 15.0.1 and Chrome 22.0.1229.94.</p>
  
  <p>Have searched around and can't find any other ways to set the 'selected' word in the value field of an option.</p>
  
  <p>Any ideas how to make this work?</p>