# Adding the data-toggle attribute to the BB button module

**URL:** <https://community.wpbeaverbuilder.com/t/adding-the-data-toggle-attribute-to-the-bb-button-module/11144>\
**Category:** Beaver Builder\
**Created:** [February 21, 2020, 7:21pm UTC](https://community.wpbeaverbuilder.com/t/adding-the-data-toggle-attribute-to-the-bb-button-module/11144 "2020-02-21T19:21:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pross](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pross/32/883_2.png) [@pross](https://community.wpbeaverbuilder.com/u/pross)\
**Post date:** [February 21, 2020, 8:57pm UTC](https://community.wpbeaverbuilder.com/t/adding-the-data-toggle-attribute-to-the-bb-button-module/11144/2 "2020-02-21T20:57:41Z")

</div>

Similar question and answer here

> [@Add download attribute to a button](https://community.wpbeaverbuilder.com/t/add-download-attribute-to-a-button/10226):
>
> Assuming you’ve added download as a custom class for the button module this js will add the attribute to force the download. jQuery(document).ready(function(){ jQuery( ".download a").attr( "download", "download" ); });

Just change it from download to data-toggle

---

_[View the full topic](https://community.wpbeaverbuilder.com/t/adding-the-data-toggle-attribute-to-the-bb-button-module/11144)._
