Copy link to clipboard
Copied
I've got a cfdiv and binding it to a checkbox. When the checkbox is checked, it shows the value of the checkbox in the div as expected. How can I get rid of that value if/when the checkbox is unchecked?
If all you are doing is showing the value of the checkbox, I suggest straight javascript instead of binding. Call the script in the onchange event of the box.
Copy link to clipboard
Copied
If all you are doing is showing the value of the checkbox, I suggest straight javascript instead of binding. Call the script in the onchange event of the box.
Copy link to clipboard
Copied
Good idea. I'll give that a shot.
Copy link to clipboard
Copied
Javascript worked like a charm. I thought by hiding items in a form with javascript that those fields would still be sent to the next page, but they're not. Fantastic. Thanks for pointing me to js.