How to change color of clicked links | XM Community
Skip to main content

Hi,
We're setting up a survey that consists of a series of links to other surveys (hosted by individual researchers through their own accounts). This links are presented in a textbox.
We'd like to make it easy for respondents to see which surveys they have already completed. One way to do this would be by having the links change color from blue to purple once they have been clicked. This would be quite intuitive for respondents as they would be used to seeing a clicked linked being purple. However, we cannot figure out how to make these links turn purple once they have been clicked. Is there some code through which we can achieve this?
Thanks!

Hi UWACARE ,
You can use the below code to change the color of clicked the link,
Qualtrics.SurveyEngine.addOnReady(function()
{

jQuery('a').click(function(){
    jQuery(this).css('color', 'purple');
});

});


Leave a Reply