I am building a survey where we provide a matrix and we only want the respondent to fill out specific rows of the matrix, not all rows. Does anyone know a code where I can highlight specific rows to have a different background color to identify which rows we want the respondent to fill out? I do not want the code to make alternating shading of rows. Thanks!
Solved
code for highlighting rows
Best answer by TomG
You could add a span with a class of 'hilite' to all the statement rows you want to highlight, like:
Statement text
Then use this JS:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .hilite").each(function() {
jQuery(this).closest("tr").css("background-color","yellow");
});
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
