• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

bind and form reset

Explorer ,
Feb 21, 2013 Feb 21, 2013

Copy link to clipboard

Copied

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?

Views

500

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 22, 2013 Feb 22, 2013

jquery to the rescue:

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

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

  });

Votes

Translate

Translate
Explorer ,
Feb 22, 2013 Feb 22, 2013

Copy link to clipboard

Copied

jquery to the rescue:

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

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

  });

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 23, 2013 Feb 23, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation