Skip to main content
Inspiring
February 21, 2013
Answered

bind and form reset

  • February 21, 2013
  • 2 replies
  • 572 views

I've got a set of radio buttons bound to a cfdiv. None of them are initially selected. As expected, once you click one, the cfdiv shows the value of the radio button that was selected.

The problem is if I reset the form that contains the radio buttons. The radio buttons clear, but the cfdiv still shows the value of the last radio button that was selected. How can I clear the cfdiv value when the form is reset?

    This topic has been closed for replies.
    Correct answer Squiggy2

    jquery to the rescue:

    $('#myButton').click(function () {

        $('#myDiv').empty();

      });

    2 replies

    BKBK
    Community Expert
    Community Expert
    February 23, 2013

    Good for you! Please kindly mark the question as answered. It will surely help someone else.

    Squiggy2AuthorCorrect answer
    Inspiring
    February 22, 2013

    jquery to the rescue:

    $('#myButton').click(function () {

        $('#myDiv').empty();

      });