title: Getting jQuery DatePicker to work in Internet Explorer 9
body: <p>I know this is common problem in the forums and I've read many pages, but still cannot get it to work so any help would be greatly appreciated.</p>
  
  <p>I am building an MVC 5 application but I need to support IE9 which is primary Browser for end users. Therefore I can assume HTML 5 support.</p>
  
  <p>From readings it would seem the most common option for non-HTML5 DatePicker is to use jQuery.</p>
  
  <p>What I've done to get this working:</p>
  
  <p>Added to _Layouts.cshtml file:</p>
  
  <pre><code>    &lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"&gt;
      &lt;link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"&gt;
      &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
      &lt;script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In my view file I have added:</p>
  
  <pre><code>&lt;div&gt;
      &lt;div id="datepicker"&gt;&lt;/div&gt;
      &lt;script&gt;
          $("#datepicker").datepicker();
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>which works fine and shows a datepicker object.</p>
  
  <p>However, I am trying to associate this to my model's FromDate property so I've tried:
  (borrowed from <a href="https://stackoverflow.com/questions/15707982/remove-time-from-asp-mvc-html-textboxfor-control-using-jquery-datepicker">Remove time from ASP MVC @Html.TextBoxFor Control using jQuery datepicker</a>)</p>
  
  <pre><code>    &lt;div&gt;
          &lt;div class="col-md-2"&gt;
              Start date
          &lt;/div&gt;
          &lt;script&gt;
              $("#datepicker").datepicker();
          &lt;/script&gt;
          &lt;div&gt;
              @Html.TextBox("StartDate", "", new { @class = "datepicker" } ))
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>But it does not show a datepicker pop-up object - in IE11 or Chrome on my dev PC.</p>
  
  <p>Any suggestions please?</p>
  
  <p>Regards
  Craig</p>