![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I've a web form that has a number of fields, one is a checkbox, that if clicked I want the form to change colour. but I'm having a blond moment, can anyone point me in the right direction. The form is a php form by the way, so if there is a php way rather I'm interested. Cheers |
#3
| |||
| |||
|
|
Try adding an onclick event to the checkbox and then have that change the Style of the Body element. dellylix wrote: Hi all, I've a web form that has a number of fields, one is a checkbox, that if clicked I want the form to change colour. but I'm having a blond moment, can anyone point me in the right direction. The form is a php form by the way, so if there is a php way rather I'm interested. Cheers |
#4
| |||
| |||
|
|
Hi Greg, That's sorted, I have an onClick tag inside my INPUT field, the reason It wasn't working was an additional # and a missing ". but once I stood back and rubbed my eyes It all became clear.... I have another question though, again with the same INPUT tag with the onClick(document.bgcolor="FFAA00"). If I click the checkbox, the frame changes colour, thats good and proper, but I also want to return it to the original colour when the checkbox is unchecked/clicked again. ?? "Greg Griffiths" <greg2 (AT) surfaid (DOT) org> wrote in message news:40C8E13C.4426B664 (AT) surfaid (DOT) org... Try adding an onclick event to the checkbox and then have that change the Style of the Body element. dellylix wrote: Hi all, I've a web form that has a number of fields, one is a checkbox, that if clicked I want the form to change colour. but I'm having a blond moment, can anyone point me in the right direction. The form is a php form by the way, so if there is a php way rather I'm interested. Cheers |
![]() |
| Thread Tools | |
| Display Modes | |
| |