Onclick events
-
Following your helpful support, I now have the following onclick event on an image to trigger displaying a field.
onclick="jQuery('.field-1').toggleClass('hide')"
I would like to hide another field (field-2) by using the same onclick event at the same time ie
field-1 hidden
field-2 visibleClick image
field-1 visible
field-2 hiddenHave tried various things to do this but no joy, could you help on this please?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Onclick events’ is closed to new replies.