title: asp.net - "attribute 'language' is not a valid attribute of element 'script'" error
body: <p>I'm putting together a webpage with a datepicker. So far the datepicker has worked on other pages, but these don't have a master menu over the top of them. Code for the datepicker is below:</p>
  
  <pre><code>        &lt;input type="text" ID="txtMSStart" runat="server" onkeypress="return ReturnNothing()"/&gt;
  
          &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /&gt;
          &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" language="javascript"&gt;
              $(document).ready(function () {
                  $("#txtMSStart").datepicker(
                  {
                      showOn: 'button',
                      buttonImage: 'icon-calendar.jpg',
                      buttonImageOnly: true,
                      changeMonth: true,
                      changeYear: true,
                      dateFormat: "dd/mm/yy",
                      showAnim: 'slideDown',
                      duration: 'fast'
                  });
              });
          &lt;/script&gt;
  </code></pre>
  
  <p>This is the same as the other datepickers. The ReturnNothing() function works and basically ensures that the user can't manually enter anything into the input box (apparently it needs to be an input box, and not a textbox, as I gather you can't add custom stuff like this to a textbox).</p>
  
  <p>However, on my previous pages (which are all stand-alone pages, which don't have a master file) this works fine. In this case, however, it doesn't, and the only thing I can see which is different is that the</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
  </code></pre>
  
  <p>line brings up a warning, which is:</p>
  
  <p>Validation (XHTML 1.1): Attribute 'language' is not a valid attribute of element 'script'</p>
  
  <p>That's the only difference I can see. The box is there but no datepicker button appears next to it. Without the ReturnNothing() you can enter text manually into it.</p>
  
  <p>Thanks for help in advance.</p>