# Prototype/Checkbox fun

**URL:** <https://discuss.rubyonrails.org/t/prototype-checkbox-fun/33157>\
**Category:** rubyonrails-talk\
**Created:** [August 13, 2008, 7:03pm UTC](https://discuss.rubyonrails.org/t/prototype-checkbox-fun/33157 "2008-08-13T19:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason16](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@Jason16](https://discuss.rubyonrails.org/u/Jason16)\
**Post date:** [August 13, 2008, 7:03pm UTC](https://discuss.rubyonrails.org/t/prototype-checkbox-fun/33157/1 "2008-08-13T19:03:00Z")

</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
