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...
KeithTrodden-48
7 months agoCommunity Member
Hi Nedim,
Thanks your reply. I used your example:-
const texts = document.querySelectorAll('[data-acc-text="text"]');
texts.forEach(text => {
const txt = text.querySelector('text');
if (txt) {
txt.style.fill = '#C0504D';
}
});
and it works a treat!
BUT, how exactly did you get your first example to work where you can change the background colour of your box?
Thanks!