Copy link to clipboard
Copied
Hi everybody,
My client wants the following: when users select one of the radio buttons of the possible answers, the send button color should change from grey to red.
The project will be published as HTML.
I am trying to do this by changing the visibility css property of the button element with javascript. I have emebeded the following code (and several variations) in the on enter action / execute javascript script window targeting the div of the first posible answer:
window.onload = function() {
var answerMC1 = document.getElementById("si11842ch_highlight");
answerMC1.onclick = showButton;
function showButton(){
document.getElementById("RedButton").style.visibility = "visible" ;
}
}
This is not working, it seems that the windows.onload event handler it's not doing what it is supposed to do, wait for the windows to load... ¿Should I use the moduleReadyEvent event??
I will apreciate very much your help!
Oriol
Have something to add?