HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Replace text color with javascript
Replace text color with javascript
  View type:
Hi!

I want that when students click on a button the color of the text changes or when certain condition is true, the color changes.

Is that possible? If so, How do I do it? [:confused:]

Thanks in advance.
 
I think the simplest solution is to make two versions, different colors. Hide one, show the other and after a click change this.
 
 
I would agree with Barend, it is going to get increasingly tricky to do it the way you suggest. Mainly because you'd have to redraw/render the page. It would try and start from the begining, recording the changes before the colour change would be needed.
Just have two identical sets of text in different colours and swap them when whatever condition you want is filled. It will be much much easier!!
 
 
 
Hi!

Thank you both of you for your reply. I'll try that.[;)]
Subject:
Message options
No additional options