title: Show/hide text with simple inline code
body: <p>I am trying to code a simple click to read more within a paragraph. I am sure this code worked to both show AND hide on click. When I try this now, it shows the hidden text, but will not hide it when I click again?</p>
  
  <pre><code>&lt;div onclick="document.getElementById ('review').style.display=document.getElementById
  
  ('review').style.display='none' ? 'block':'none';"&gt;
  
  &lt;p&gt;Click here to read our review&lt;/p&gt;
  
  &lt;div id="review" style="display: none;"&gt;Review text goes here.&lt;/div&gt;  
  </code></pre>
  
  <p></p>
  
  <p>Any ideas about how to achieve this with simple inline code?</p>
  
  <p>Thanks</p>