Egocentralis
Member
Hey all,
I have an yesno element. I also have a display element.
I want the display element to be visible when the no button is active and i want to hide the display element when yes is active.
To accomplish that I tried to make javascript events.
I tried:
on load == 1 hide display_element
on load == 0 show display_element
on load !== 1 hide display_element
on load !== 0 show display element
on click == 1 hide display_element
On click == 0 show display_element
etc etc.. I also tried on change, select... and i also tried == yes or == no... and even in dutch i tried ==ja and ==nee
Plus all other combinations with !== , == etc
But, nothing happens to the display element. On another page i used this with a checkbox... and that is working very good.
So what am I missing? Or how can I use the javascript event with the yesno button??
Regards
I have an yesno element. I also have a display element.
I want the display element to be visible when the no button is active and i want to hide the display element when yes is active.
To accomplish that I tried to make javascript events.
I tried:
on load == 1 hide display_element
on load == 0 show display_element
on load !== 1 hide display_element
on load !== 0 show display element
on click == 1 hide display_element
On click == 0 show display_element
etc etc.. I also tried on change, select... and i also tried == yes or == no... and even in dutch i tried ==ja and ==nee
Plus all other combinations with !== , == etc
But, nothing happens to the display element. On another page i used this with a checkbox... and that is working very good.
So what am I missing? Or how can I use the javascript event with the yesno button??
Regards