Hi! I’m trying to figure out how to hide element specifically image when i select other choice. I was searching on forum and I found similar problems but no one solved mine.
I combined with code and it looks like it should work, but it doesn’t.
if ( $w ( “#radioGroup1” ). value == “Uczeń” ) {
$w ( “#vectorImage2” ). hide ()
}
if ( $w ( “#radioGroup1” ). value == “Nauczyciel” ) {
$w ( “#vectorImage2” ). show ()
}
Hi there I assume this code is in the onReady function for the page?
If this is the case, you should try adding an onChange event to the radio group, to successfully trigger the code. Good luck!
@biznesszymonczaja You will need to work with an if/else statement to get your desired functionality. The “best answer” to this post should give you the proper format for your code.