First, I know virtually nothing about Javascript so hopefully someone will be kind enough to help as I'm sure this should be an easy task:
On a page which has several forms, there is a checkbox in one form and the checkbox is in fact the only element of the form that gets displayed - no buttons or anything else are used because it is only the checkbox that has any real function.
What I want to do is to detect whether the checkbox is checked or not and to create some kind of a variable that can be used in one of the other forms to be submitted with it. For example, if it's not checked, the other form will have a hidden tag with a default value as part of one of its value tags: value="value is FALSE" and when the checkbox is checked, it will say, value="value is TRUE" with the TRUE and FALSE being the variable based on the checkbox status (the actual text will be different, this is only an example).
Can anyone help? Thanks in advance. Don
don@pc-homepage.com
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT/2000 (only when I have to!)
On a page which has several forms, there is a checkbox in one form and the checkbox is in fact the only element of the form that gets displayed - no buttons or anything else are used because it is only the checkbox that has any real function.
What I want to do is to detect whether the checkbox is checked or not and to create some kind of a variable that can be used in one of the other forms to be submitted with it. For example, if it's not checked, the other form will have a hidden tag with a default value as part of one of its value tags: value="value is FALSE" and when the checkbox is checked, it will say, value="value is TRUE" with the TRUE and FALSE being the variable based on the checkbox status (the actual text will be different, this is only an example).
Can anyone help? Thanks in advance. Don
don@pc-homepage.com
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT/2000 (only when I have to!)