Skip to main content
1 of 7
Frédéric Hamidi
  • 263.8k
  • 42
  • 497
  • 486

You have to inject the value of current into an Attribute Equals selector:

$("ul").find("[data-slide='" + current +"']"); 
Frédéric Hamidi
  • 263.8k
  • 42
  • 497
  • 486