Group name color

More
6 months 3 weeks ago - 6 months 3 weeks ago #159162 by nhotovas
nhotovas created the topic: Group name color
Dear all,

I need to change group-name color, in case that answer on questionX, from previous group is "Don't know" (question type is list-radio).
I found code for changing question text color ( in below), but I have no idea how to implement this for group-name?

<script type="text/javascript">
$(document).ready(function() {
$("<style type='text/css'>"
+ "#question{QID} .questiontext { color:red }"
+"</style>").appendTo( "head" );
});
</script>

Thanks in advance.
Regards!
Last Edit: 6 months 3 weeks ago by nhotovas.

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago #159204 by tpartner
tpartner replied the topic: Group name color
Assuming you are using the default template of a current version, something like this will dynamically change the group name color:

<script type="text/javascript" charset="utf-8">
	$(document).on('ready pjax:complete',function() {
		$('.group-name').css({
			'color': '#FF0000'
		});
	});
</script>

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago #159377 by nhotovas
nhotovas replied the topic: Group name color
Dear Tony,

excellent as always. Thank you very much!
Very sorry for not thanking you straight away as you provided an answer, but I am very thankful even when so busy.

Regards!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!