bootstrap 3 class display none code example

Example 1: bootstrap display inline block

<div class="d-inline-block"></div>

Example 2: d-block d-none js

chartElement.classList.contains('d-none') ? chartElement.classList.remove('d-none') : '';
!chartElement.classList.contains('d-block') ? chartElement.classList.add('d-block') : '';

noDataElement.classList.contains('d-block') ? noDataElement.classList.remove('d-block') : '';
!noDataElement.classList.contains('d-none') ? noDataElement.classList.add('d-none') : '';

Tags:

Html Example