I
I
Ivan Simonov2018-04-04 13:40:13
JavaScript
Ivan Simonov, 2018-04-04 13:40:13

How to bind data attribute instead of id?

Hello
There is a normal slider (bootstrap 3) - Fiddle

In those. Documentation is bootstrapused idfor the slider

How to replace idwith data-id, since the whole slider is bound to id

Is it possible to do this?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2018-04-04
@KickeRockK

I don’t know, the challenge in versions 3 and 4 is different, but here

$('[data-id="carousel-example-generic"]').carousel();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question