Well, I'm having trouble selecting an attribute of a certain element of bootstrap
with 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
data-target
, ordata-slide-to
, and their respective values, how could this be done? - Is the same procedure valid for any other attribute?
- How can I get the value of only
data-slide-to
that has classactive
?