title: Jquery changing Selected value in MVC dropdown
body: <p>I have been searching the internet and reading a lot of different ways to do this, but for some reason, none of them are working for me. There must be something I am missing here. What I am trying to do is update a dropdown list with a particular selected value when a checkbox is checked. </p>
  
  <p>Html for select</p>
  
  <pre><code>    &lt;select data-hands-jqui-props="{&amp;quot;header&amp;quot;:true,&amp;quot;height&amp;quot;:175,&amp;quot;minWidth&amp;quot;:225,&amp;quot;classes&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;checkAllText&amp;quot;:&amp;quot;Check all&amp;quot;,&amp;quot;uncheckAllText&amp;quot;:&amp;quot;Uncheck all&amp;quot;,&amp;quot;noneSelectedText&amp;quot;:&amp;quot;Select option&amp;quot;,&amp;quot;selectedText&amp;quot;:&amp;quot;# selected&amp;quot;,&amp;quot;selectedList&amp;quot;:1,&amp;quot;autoOpen&amp;quot;:false,&amp;quot;multiple&amp;quot;:false,&amp;quot;disabled&amp;quot;:false,&amp;quot;handsOnCreate&amp;quot;:null}" data-hands-jqui-type="multiselect" data-val="true" data-val-date="The field  must be a date." id="SundayOpen" name="SundayOpen"&gt;&lt;option value=""&gt;&lt;/option&gt;
  &lt;option value="4/17/2013 12:00:00 AM"&gt;12:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 12:15:00 AM"&gt;12:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 12:30:00 AM"&gt;12:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 12:45:00 AM"&gt;12:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 1:00:00 AM"&gt;1:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 1:15:00 AM"&gt;1:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 1:30:00 AM"&gt;1:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 1:45:00 AM"&gt;1:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 2:00:00 AM"&gt;2:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 2:15:00 AM"&gt;2:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 2:30:00 AM"&gt;2:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 2:45:00 AM"&gt;2:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 3:00:00 AM"&gt;3:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 3:15:00 AM"&gt;3:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 3:30:00 AM"&gt;3:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 3:45:00 AM"&gt;3:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 4:00:00 AM"&gt;4:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 4:15:00 AM"&gt;4:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 4:30:00 AM"&gt;4:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 4:45:00 AM"&gt;4:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 5:00:00 AM"&gt;5:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 5:15:00 AM"&gt;5:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 5:30:00 AM"&gt;5:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 5:45:00 AM"&gt;5:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 6:00:00 AM"&gt;6:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 6:15:00 AM"&gt;6:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 6:30:00 AM"&gt;6:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 6:45:00 AM"&gt;6:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 7:00:00 AM"&gt;7:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 7:15:00 AM"&gt;7:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 7:30:00 AM"&gt;7:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 7:45:00 AM"&gt;7:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 8:00:00 AM"&gt;8:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 8:15:00 AM"&gt;8:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 8:30:00 AM"&gt;8:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 8:45:00 AM"&gt;8:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 9:00:00 AM"&gt;9:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 9:15:00 AM"&gt;9:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 9:30:00 AM"&gt;9:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 9:45:00 AM"&gt;9:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 10:00:00 AM"&gt;10:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 10:15:00 AM"&gt;10:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 10:30:00 AM"&gt;10:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 10:45:00 AM"&gt;10:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 11:00:00 AM"&gt;11:00 AM&lt;/option&gt;
  &lt;option value="4/17/2013 11:15:00 AM"&gt;11:15 AM&lt;/option&gt;
  &lt;option value="4/17/2013 11:30:00 AM"&gt;11:30 AM&lt;/option&gt;
  &lt;option value="4/17/2013 11:45:00 AM"&gt;11:45 AM&lt;/option&gt;
  &lt;option value="4/17/2013 12:00:00 PM"&gt;12:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 12:15:00 PM"&gt;12:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 12:30:00 PM"&gt;12:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 12:45:00 PM"&gt;12:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 1:00:00 PM"&gt;1:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 1:15:00 PM"&gt;1:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 1:30:00 PM"&gt;1:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 1:45:00 PM"&gt;1:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 2:00:00 PM"&gt;2:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 2:15:00 PM"&gt;2:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 2:30:00 PM"&gt;2:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 2:45:00 PM"&gt;2:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 3:00:00 PM"&gt;3:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 3:15:00 PM"&gt;3:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 3:30:00 PM"&gt;3:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 3:45:00 PM"&gt;3:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 4:00:00 PM"&gt;4:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 4:15:00 PM"&gt;4:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 4:30:00 PM"&gt;4:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 4:45:00 PM"&gt;4:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 5:00:00 PM"&gt;5:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 5:15:00 PM"&gt;5:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 5:30:00 PM"&gt;5:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 5:45:00 PM"&gt;5:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 6:00:00 PM"&gt;6:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 6:15:00 PM"&gt;6:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 6:30:00 PM"&gt;6:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 6:45:00 PM"&gt;6:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 7:00:00 PM"&gt;7:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 7:15:00 PM"&gt;7:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 7:30:00 PM"&gt;7:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 7:45:00 PM"&gt;7:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 8:00:00 PM"&gt;8:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 8:15:00 PM"&gt;8:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 8:30:00 PM"&gt;8:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 8:45:00 PM"&gt;8:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 9:00:00 PM"&gt;9:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 9:15:00 PM"&gt;9:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 9:30:00 PM"&gt;9:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 9:45:00 PM"&gt;9:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 10:00:00 PM"&gt;10:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 10:15:00 PM"&gt;10:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 10:30:00 PM"&gt;10:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 10:45:00 PM"&gt;10:45 PM&lt;/option&gt;
  &lt;option value="4/17/2013 11:00:00 PM"&gt;11:00 PM&lt;/option&gt;
  &lt;option value="4/17/2013 11:15:00 PM"&gt;11:15 PM&lt;/option&gt;
  &lt;option value="4/17/2013 11:30:00 PM"&gt;11:30 PM&lt;/option&gt;
  &lt;option value="4/17/2013 11:45:00 PM"&gt;11:45 PM&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The JQuery</p>
  
  <pre><code>  if (IsPreFillOn) {
  
          $("#SundayOpen option[value='4/17/2013 12:30:00 AM']").attr("selected","selected");
          alert($("#SundayOpen").val());
      }
  </code></pre>
  
  <p>The document.ready is not shown but is there. The interesting thing is that the alert shows the proper value, but the actual drop down is not being updated.</p>
  
  <p>Any thoughts on what could be going on?</p>