Why the data value is not assigned to a selector?

Write your slider. Here's the problem, in the bread crumbs to the dots assigned the attribute data-id, the idea is that the value of this data-id is lifted to the selector slide (e.g. "slide S0", where c0 is the sequence number of the slide, instead of the conventional zero should be assigned the value of data-id, but it does not console.log says "I have not found such a selector, go to hell."
https://jsfiddle.net/Nixtone/huz7790g/ 22 string JS

On the spot. Tell me the concept of turning slide the arrow from left to right (and without scrolling through the whole slider when the transition occurs from the last to first slide). Please.
June 8th 19 at 16:51
1 answer
June 8th 19 at 16:53
Solution
In the markup of the Russian
c
Thank you) - nikita.Stracke commented on June 8th 19 at 16:56

Find more questions by tags jQuery