title: Overwrite width of an div element with jquery - IE bug?
body: <p>I have problem with a very simple jquery script - it works with all browsers except IE. Basically I want to change the width of a div element with jquery. IE explorer seems to ignore the change. Here is the complete script (only at certain pages, I want to have that change):</p>
  
  <pre><code>&lt;script&gt;
    $( document ).ready(function() {
    var a, url = document.URL;;
    a = document.createElement( 'a' );
    a.href = url;
    if (a.pathname == '/index.php/somepage')
    $("div.component.message").css("width","700px");
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>The part that doesn't work is with IE (IE 11/ Edge):</p>
  
  <pre><code>$("div.component.message").css("width","700px");
  </code></pre>
  
  <p>If I put something else in the if clause like an alert it will be executed. The width change does work in Opera, Chrome oder Firefox.</p>
  
  <p>I solved the problem in the php file, which might be better than doing it with javascript in the first place, still I'd like to know if I simply made a stupid mistake or if it is a problem with IE in general.</p>