title: ASP.NET MVC3: Validating Date Times and Custom Validation messages
body: <ol>
  <li>How would I prevent users typing into a datetimepicker (text field),
  but allow them to use the datetimepicker.</li>
  <li>How can I validate that one date is AFTER another, and display it inline (and prevent submitted) exactly like ASP.Net MVC3 does. The javascript isnt so much the problem of checking its after the other, its how I go about displaying this inline message and prevent submitting, Tieing it in with the other validation.</li>
  </ol>
  
  <p>so far I have </p>
  
  <pre><code>            $("#Save").click(function (e) {
                  if (  $('#EndTime').val() &lt; $('#StartTime').val() )
                      alert("AHRR"); // Should add an inline message and NOT submit.
              });
  </code></pre>