Hi,
I have a basic yes/no multiple choice question, followed by a side-by-side which has a text entry column. Currently when the user selects no, the text entry boxes are disabled to prevent entry. However, if they select yes, enter data, then choose no, the data remains. I want to wipe all text boxes as well as disable them whenever no is chosen.
Does anybody know how I might go about achieving this?
Solved
JavaScript: Emptying text boxes based on multiple choice answer
Best answer by rondev
Wherever you are disabling the text box just add .val('') as below
jQuery("[id='QR~QID26#1~1~1']").prop("disabled", true).val('');
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
