AnsweredAssumed Answered

Assign value to Text box/Checkbox not working.

Question asked by ranjith on Sep 9, 2015
Latest reply on Sep 11, 2015 by



I have Reset button on my Form and when user click on that, I need to reset all the control on the form. I have textbox,Choice, Dropdown list and Radio buttons on the form.I have tried below code to reset the form , but its not working. Could you please help me on this.



function ResetDefault() {

    NWF$("#" + RbtnServiceCodeExmpt).find('input[value=\'Yes\']').attr('checked', 'checked');

    NWF$("#" + RbtnRequirement).find('input[value=\'Select One:\']').attr('checked', 'true');

    NWF$("#" + txtReqExplanation).val('');



On the Reset button i have below code:


NWF$(document).ready(function () { ResetDefault(); });