Skip to main content
Inspiring
February 5, 2013
Answered

cfdiv bind with checkbox - unchecked box

  • February 5, 2013
  • 1 reply
  • 835 views

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?

    This topic has been closed for replies.
    Correct answer Dan_Bracuk

    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.

    1 reply

    Dan_BracukCorrect answer
    Inspiring
    February 6, 2013

    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.

    Squiggy2Author
    Inspiring
    February 6, 2013

    Good idea. I'll give that a shot.

    Squiggy2Author
    Inspiring
    February 6, 2013

    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.