title: check_box_tag onclick event including javascript
body: <p>How do I include the following functionality in the rails checkbox:</p>
  
  <p>If checkbox is clicked show inputBox otherwise do not show inputBox. Below is not working.</p>
  
  <p><code>= check_box_tag 'update',:onclick=&gt;$('#inputBox')[this.checked ? "show" : "hide"]();</code></p>