Force color of selected multiple choice question

JMacaJMaca AustraliaCommunity Member Qubie ✭

Force color of selected multiple choice question

Hi there!

I like the formatting of the MC questions better than forms and so am using a text entry option with a MC question.

However, I would like to keep the color of the checked MC items grey instead of changing to my alternate color.

Is there a way using jQuery to stop the color from changing when a choice is selected? This would only be for a few questions, do don't want to use CSS style sheet.

Thanks!

Answers

  • SurajKSurajK IndiaCommunity Member Sage ✭✭✭

    Try the below code at for the respected question. You can change the background to other color as well.

    Qualtrics.SurveyEngine.addOnReady(function()
    {
      this.questionclick = function(event,element)
      {
     jQuery('.Skin label.MultipleAnswer.q-checked, .Skin label.MultipleAnswer.q-checked.q-focused, .Skin label.SingleAnswer.q-checked, .Skin label.SingleAnswer.q-checked.q-focused').attr('style','background:none !important')
      }
    });
    
Sign In to Comment