The active tab does not display underscore when in the module, although I gave one of the tabs a classof active. However, as soon as I click on one of the tabs, it starts to work. What is the problem?
class
active
Here is the JSFiddle .
And here is the place where I give the element the correct name class:
... <a class="active" href="#test1">Test 1</a> ...
Any help would be appreciated.
An underline will be displayed if you initialize the tabs using readythe Modal window option .
ready
Something like that:
$('.modal-trigger').leanModal({ ready: function () { $('ul.tabs').tabs(); } });
Here is the fiddle: https://jsfiddle.net/powxw392/
, click :
$('ul.tabs').tabs(); $('.modal-trigger').leanModal({ ready: function () { $('#firstTab').click(); } });
: https://jsfiddle.net/qj0r84dr/
, .
, , - ., , div indicator, , .
indicator
, CSS:
.tabs .indicator { display: none; } .tabs .tab a.active { border-bottom: 2px solid #f6b2b5; }
:
$('#modal1').find('.indicator').attr('style', 'right: 415.333px; left: 0px;');
( ).
Source: https://habr.com/ru/post/1649684/More articles:How to remove the white screen when loading the application for Android? - androidLaravel & Dingo: Secure API with Facebook / Google Login - facebookBootstrap 4 only with flexible mesh - csshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1649682/how-do-i-get-an-accesstoken-after-authenticating-with-neura-sdk-for-android&usg=ALkJrhj3kZVd99qzd-Eo6Lq1eRrV-GT7PQAJAX POST JSON Error for PHP No DATA in PHP - phpUnable to install kernel and utop for OCaml on Ubuntu 14.04 with OPAM - ubuntuchanging font attributes in jupyter laptop shortcut widgets - pythonHow to create primary keys in ClickHouse - databaseIs it possible to get the last available offset for the Kafka section without getting all the messages? - apache-kafkaHow to get batch documentation in Quicklisp - common-lispAll Articles