title: why won't this style.display work?
body: <p>Why won't this work? It should check the element for <code>display</code> css style.</p>
  
  <pre><code>if (byId("annonsera_price").style.display=='inline' || byId("annonsera_price").style.display=='block'){
  alert ("Hello");
  }
  
  function byId(x){
          return document.getElementById(x);
  }
  </code></pre>
  
  <p>update2:</p>
  
  <pre><code>&lt;input style="width:100px;" type="text" name="annonsera_price" id="annonsera_price"&gt;
  </code></pre>
  
  <p>I haven't set it with css either!</p>