Mixing JS with check_box_tag

I have a check_box_tag in my code that the user clicks to add more information. When the checkbox is checked or unchecked I want to call a JS function I have written called toggleBox(). Does anyone know how to do this?

Thanks in advance!

I have a check_box_tag in my code that the user clicks to add more information. When the checkbox is checked or unchecked I want to call a JS function I have written called toggleBox(). Does anyone know how to do this?

pass an onclick option to the checkbox.

Fred