title: Show/hide input after click in checkbox
body: <p>I'm trying to Show/hide my input after check/uncheck a checkbox but I getting this info from DB so, I'm using PHP to add 'checked' attribute to my input.</p>
  
  <p>jQuery code is working, but when I refresh the page, my input doesn't show even with attribute checked "enabled".</p>
  
  <p>PHP code </p>
  
  <pre><code>  &lt;label&gt;Send cash?&lt;/label&gt;
    &lt;input class="reg_cash" type="checkbox" name="reg_cash" value="1" 
    &lt;?php echo ($configs-&gt;reg_cash) ? 'checked' : '' ?&gt;&gt;
  
  
    &lt;div class="reg_cash_amount"&gt;     
      &lt;label&gt;Amount of cash&lt;/label&gt;
         &lt;input type="text" name="reg_cash_amount" id="coupon_field"/&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>Jsfiddle: <a href="https://jsfiddle.net/qmmg3qwo/" rel="nofollow">https://jsfiddle.net/qmmg3qwo/</a></p>