Checkbox operated message

admin

Administrator
Staff member
I have a form with a checkbox. What I would like to happen is that when the user checks or unchecks the checkbox I would like a message to appear beneath it depending on the state of the checkbox.


---------------------- Example -------------------------------

Checkbox [ ] (unchecked)
you will not be added to the database

Checkbox (checked)
you will be added to the database

-----------------------------------------------------------------

I believe this would be done through document.write with an if/else statement.

I would like the text to change without having to refresh the page as well as without the use of text fields. Therefore the message would look identical to the surrounding text.

I would be very grateful if anyone could help me out!

Thank you very much!

Dominic Cort
 
Back
Top