|
hiding checkboxes with JS
I've got a function that creates checkboxes that I'm going to be using in a form, and I want it to be hidden by default. There's a checkbox that's "parent" to these other ones that should reveal the other checkboxes when checked, and hide them again unchecked.
I know I need javascript, and I know that I've got to use the on click event, but other than that I'm lost.
Could anybody help me hide a simple string with on-click to get me started? Or point me in the right direction?
Or even better yet, does anybody know of a way to do something like this without javascript?
|