title: javascript/css: change display property
body: <p>I want to change display without documentGetElementById if possible but the following is not working.
  html</p>
  
  <pre><code>&lt;a href="javascript:void();" onclick="toggleFaq('1')"&gt;Instructions&lt;/a&gt;&lt;div id="showfaq1" style="display:none;"&gt;Open Box.  Remove device. &lt;/div&gt;
  </code></pre>
  
  <p>javascript:</p>
  
  <pre><code>function toggleFaq(faqid) {
  //alert(faqid);
  var divname = "showfaq"+faqid;
  //alert(divname);
  divname.style.display="block";
  }
  </code></pre>
  
  <p>Can anyone tell me what I am doing wrong?</p>
  
  <p>Thank you.</p>