When $(this).next().toggle(); hide the other button


Hello there :grin:

In chapter 13 from this category, we learned how to use $(this) selector and next() function together to show the content of an specific clicked button, but WHAT IF WE WANT that when we click a button the other button clicked hide its content (if its showed then), without disturbing the toggeling from the current or the other button?

Thanks all of you’re beautiful :smirk:


This topic was automatically closed after 7 days. New replies are no longer allowed.