S
S
Sansara08912018-02-28 20:36:18
Bootstrap
Sansara0891, 2018-02-28 20:36:18

How to make a button to close active tab bootstrap?

Hello. My task is the following: to make a menu through tabs. Implemented everything, but it is necessary that there was a button to close the tab-content. Everything is implemented on bootstrap 3. Help with js-som, please)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
novrm, 2018-03-01
@novrm

Try to use the standard "close" button.

<ul class="nav nav-pills">
  <li role="presentation" class="active"><a href="#">Home</a></li>
  <li role="presentation"><a href="#">Profile</a></li>
  <li class="alert" role="presentation">
    <a href="#">
      <button type="button" class="close pull-right" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      Messages
    </a>
  </li>
</ul>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question