I want to create a checkbox on a form that, when checked, will display a text field for someone to enter text into. If the box isn't checked, though, the text field should not be displayed.
How do I do this?
Oh also, it will probably use document.getElementByID(), because that is what we're learning about
simplest with what you've got now would be just to duplicate the code, swapping "show_me" for some other id (and doing this in the onclick, too)
probably better would be storing the checkboxes in an array and looping through them, but I suspect that if you submitted that your teacher may get a little suspicious.
Bookmarks