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?
jquery to the rescue:
$('#myButton').click(function () {
$('#myDiv').empty();
});
Copy link to clipboard
Copied
jquery to the rescue:
$('#myButton').click(function () {
$('#myDiv').empty();
});
Copy link to clipboard
Copied
Good for you! Please kindly mark the question as answered. It will surely help someone else.