Thanks a lot @dobra021 and @Rock !
Hellow @fleb, Thanks very much for your detailed answer! I will have a try. Thanks a lot.
Hello @Shashi, Thank you very much! It works for me! Thank you!
Hi @fleb, Thanks very much for your speedy reply. I use Matrix Table --> Profile, Multiple Answer question, and I want to hide some choices in some positions. For example, if the first row has 4 choices and the second row has only two choices, I can hide the third and fourth choices in the second row. I had a try but I found that I can only hide the choices in the first row. How can I hide the choices in the second row or even, say, the sixteenth row? Here is my code: > jQuery("#" + this.questionId + " .ChoiceRow:first").find("th.c8").hide(); > jQuery("#" + this.questionId + " .ChoiceRow:second").find("th.c8").hide(); > jQuery("#" + this.questionId + " .ChoiceRow:sixteenth").find("th.c8").hide(); How can I find a certain row? Thanks again.
Hi @fleb, thanks for you help! I tried the code you provided, but it doesn't work. I am not sure whether there is something wrong in my code elsewhere. Here is my code: > /*Place your JavaScript here to run when the page loads*/ > jQuery("#"+this.questionId+" select").select2({ > placeholder: '请选择', > maximumSelectionLength: 56, > width: "100%", > closeOnSelect: "false" > }); > > jQuery(" .select2-results__group").css("background-color", "#8e00ff "); > jQuery(" .select2-results__group").css("-webkit-text-fill-color", "#00ff7b"); And if I put it this way, it still doesn't work: >/*Place your JavaScript here to run when the page loads*/ > jQuery("#"+this.questionId+" select").select2({ > placeholder: '请选择', > maximumSelectionLength: 56, > width: "100%", > closeOnSelect: "false" > }); > > jQuery("#"+this.questionId).find("select2_results__group").css("background-color", >"#8e00ff "); > jQuery("#"+this.questio
> @fleb said: > Hi @cqulihui, > have you checked whether your CSS selector is correct using the inspector? If not, try it. You can use this manual. Thanks @fleb! I learned this manual and had a try. I found that I could change the font color of the names of the groups by changing the following code: `.select2-results__group{ background-color:#8e00ff -webkit-text-fill-color:#00ff7b }` But I don't know where I should put this code, in "Style"-->"CSS" or "Add javascript"-->"addOnload"? Thank you for your help!
Hi @Shashi, Thanks for your help. I have tried your code. But it doesn't work. I use a Multiple Choice question, not a matrix question. I am not sure whether the question type is the reason that the code doesn't work. Thanks again.
Thank you very much @TomG! Your code completely solved my problem. Thanks again!
Thanks very much for your help! @jainshubham If I get it right, after I add this code into Look&Feel-->Style, the background color of all the tables will be changed. I just want to change one Multiple Choice question. How can I do this? And I have been looking for the column id. I failed to find it. Where can I find the ids? Thanks a lot!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.