Forum Discussion
KeithTrodden-48
9 months agoCommunity Member
Changing colour of textboxes
Hi everyone,
Just a question if anyone out there can help me...
Does anyone know how to use the trigger that executes javascript in Articulate Storyline to change the colour of a textbox when yo...
Nedim
7 months agoCommunity Member
Updated script:
const texts = document.querySelectorAll('[data-acc-text="text"]');
texts.forEach(text => {
text.style.backgroundColor = '#ab34de' //change the background color of the text box
const txt = text.querySelector('text');
if (txt) {
txt.style.fill = '#C0504D';
}
});