Skip to main content
Inspiring
Feb 21, 2013 10:54 PM UTC
Answered

bind and form reset

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 is closed to new replies. Start a new post to keep the conversation going.
    Squiggy2Correct answer
    Inspiring
    Feb 22, 2013 11:58 PM UTC

    jquery to the rescue:

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

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

      });

    2 replies

    BKBK
    Community Expert
    Community Expert
    Feb 23, 2013 12:39 PM UTC

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

    Translate
    Squiggy2AuthorCorrect answer
    Inspiring
    Feb 22, 2013 11:58 PM UTC

    jquery to the rescue:

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

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

      });

    Translate