Answers for "bootstrap 4 open tab when opening modal"

0

bootstrap 4 open tab when opening modal

$('#modal-sensory').on('show.bs.modal', function (event) {    
  // Button that triggered the modal
  var button = $(event.relatedTarget)

  // the modal
  var modal = $(this);

  //show tab
  modal.find('[href="'+button.attr("href")+'"]').tab('show');
});
Posted by: Guest on January-16-2020

Code answers related to "bootstrap 4 open tab when opening modal"

Code answers related to "Javascript"

Browse Popular Code Answers by Language