1
Well, I’m having trouble selecting an attribute from a certain element of bootstrap with the jquery, for example:
<ol class="carousel-indicators">
<li data-target="#carrossel-principal" data-slide-to="0" class="active"></li>
<li data-target="#carrossel-principal" data-slide-to="1"></li>
<li data-target="#carrossel-principal" data-slide-to="2"></li>
</ol>
- To select the
data-target, ordata-slide-to, and their respective values, how such a procedure could be done ? - The same procedure is valid for any other attribute ?
- How can I take the value only of
data-slide-toclassyactive?
but for example, how can I take the value of
datawho is with the active class ?– Murilo Melo
Using
$('li.active').data();– Thiago Santos
perfect guy, worked quietly
– Murilo Melo