Title: Switch html code depending on button event
Last modified: March 10, 2020

---

# Switch html code depending on button event

 *  Resolved [magbaba](https://wordpress.org/support/users/magbaba/)
 * (@magbaba)
 * [6 years ago](https://wordpress.org/support/topic/switch-html-code-depending-on-button-event/)
 * Hope someone can help with this query.
 * I am trying to see if its possible to use buttons and create kind of a tab functionality.
 * You press a button and it shows column/html code that is hidden underneath in
   Elementor.
 * I looked at all the options of dynamic tags but I can’t figure out if there is
   a way to display a column or a HTML code that’s been hidden? I can see there 
   is a popup but there isn’t a way to display a section. Any clues?
 * If it can’t be done this way, how would you recommend I go about doing this?
 * Grateful for help
    Matija

Viewing 1 replies (of 1 total)

 *  Plugin Author [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * (@rtowebsites)
 * [6 years ago](https://wordpress.org/support/topic/switch-html-code-depending-on-button-event/#post-12621712)
 * Hello [@magbaba](https://wordpress.org/support/users/magbaba/)
 * our plugin not only hide the elements, they are fully removed. So there is no
   way to display it.
 * You could hide the element with css (display: none) and add a javascript to show
   the element onclick.

Viewing 1 replies (of 1 total)

The topic ‘Switch html code depending on button event’ is closed to new replies.

 * ![](https://ps.w.org/dynamicconditions/assets/icon-256x256.jpg?rev=1969812)
 * [Dynamic Conditions](https://wordpress.org/plugins/dynamicconditions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamicconditions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamicconditions/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamicconditions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamicconditions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamicconditions/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/switch-html-code-depending-on-button-event/#post-12621712)
 * Status: resolved