# Prototype/Checkbox fun

**URL:** <https://www.ruby-forum.com/t/prototype-checkbox-fun/145774>\
**Category:** Rails\
**Created:** [August 13, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/prototype-checkbox-fun/145774 "2008-08-13T21:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonwold](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Post date:** [August 13, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/prototype-checkbox-fun/145774/1 "2008-08-13T21:03:49Z")

</div>

I’m probably missing the obvious clues, but i’m stumped. the script is  
not  
firing, so the div is still visible. this is the first time i’ve used a  
script since i’m still classified as a noob

\<%= check\_box\_tag ‘accept\_reg’, :onclick =\> “if  
($(‘accept\_reg’).checked) {  
$(‘submit\_div’).show()}” %\>

thank you,  
Jason
