
Solved
Setting up a series of text entry boxes as an accordion
I have a series of 8 essay text entry questions. I'd like for this series to appear like an accordion, where the headings always show and the text boxes are hidden but show/hide again by clicking the down arrow. If I make the heading (question text) into a button, can I use the question element id in a function to show/hide just the text entry box onclick?
!

Best answer by Anonymous
Hello @Nadaly ,
Paste the below code in js(onReady)
var that= this.questionId;
jQuery("#"+this.questionId+" .InputText").hide();
jQuery("#"+this.questionId+" .LabelWrapper label").on('click',function(){
jQuery("#"+that+" .InputText").hide();
var id=jQuery(this).attr("for");
jQuery("[id='"+id+"']").show();
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
