Solved
Hide an option of Multiple Choice Question
Hi,
I'm new here. I've seen that people use jQuery("#"+this.questionId).hide() to call and hide a question but how can i hide an option of the question?
Thanks in advance.
Best answer by TomG
In your code I think choice_contents[i] is an object, not a text field. Also, there is no guarantee that the choiceid is the same as the loop number + 1.
I would take a different approach (assumes single answer, vertical MC - not tested):
jQuery("#"+this.questionId+" label.SingleAnswer").each(function() {
var label = jQuery(this);
if(label.text() == "${e://Field/Name}") label.closest("li").hide();
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
