JQuery syntax issue with screen width
<p>Please look over my syntax here. I am getting the following error: Object doesn't support this property or method. Any help would be appreciated. I am trying to append a new stylesheet if the screen resolution is less then or equal to 1024 pixels wide. </p>

<pre><code>   $(document).ready(function() {

  if ((screen.width&lt;=1024)) {

  $('head').append('&lt;link rel="stylesheet" href="/css/mycss.css" type="text/css" /&gt;');

  }

  });
</code></pre>
