# how do we show bs-tooltip on disabled button?

**URL:** <https://community.grafana.com/t/how-do-we-show-bs-tooltip-on-disabled-button/17655>\
**Category:** General\
**Created:** [May 24, 2019, 2:22pm UTC](https://community.grafana.com/t/how-do-we-show-bs-tooltip-on-disabled-button/17655 "2019-05-24T14:22:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohitpurbia](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mohitpurbia](https://community.grafana.com/u/mohitpurbia)\
**Post date:** [May 24, 2019, 2:22pm UTC](https://community.grafana.com/t/how-do-we-show-bs-tooltip-on-disabled-button/17655/1 "2019-05-24T14:22:36Z")

</div>

here is my code  
i am checking condition on bs-tooltip and ng-style that if button is disabled on hover tooltip will show but it not works

```auto
<button class="btn btn-primary" bs-tooltip="ctrl.anyMachinesError || ctrl.anyMachinesDirty || ctrl.machinesSubmitted ? 'Please Configure and Save all Machines':' '" data-placement="right" ng-click="ctrl.onSubmit()" ng-disabled="ctrl.anyMachinesError || ctrl.anyMachinesDirty || ctrl.machinesSubmitted"
     ng-style="{'pointer-events':ctrl.anyMachinesError || ctrl.anyMachinesDirty || ctrl.machinesSubmitted ? 'none' : ''}">
       Submit & Next
     </button>

```
