Upvote 1

Showing/Hiding Group of Elements

Answered Brandon Coffey 7 years ago

Hello,


I'm trying to add a show/hide toggle to group of elements when a another group of elements are clicked. I can't seem to figure out the proper events to use.


Please advise.


Thank you!

Replies (3)
photo
2

Hi Brandon,


While you can apply the result of an event to a group of elements (i.e. - Hide/Show), you can only have the start of the event (i.e. - the On Click) to one element and not a group. As a workaround, you can use a hotspot for the area where the group of elements is.


Best,

Danielle

photo
1

Hi Danielle,


Got it. What string of events do I need to add to the hotspot for a group to show when another group is clicked and then be hidden when the group is clicked again.


I'm ultimately trying to mimic a dropdown showing/hiding when clicked.


Thanks,


Brandon

photo
1

Hi Brandon,


Actually, the event is a little more complicated than I first described, and involves using a checkbox or radio button instead. The 'on toggle' event is necessary to create the interaction.


You can check out the example of this here: https://dl.dropboxusercontent.com/u/46967405/ShowHideGroup.vp


Let me know if you have any further questions.


Best,

Danielle

Leave a Comment
 
Attach a file