Abhishek Chadha

Abhishek Chadha

  • 327
  • 5.1k
  • 461.9k

Elements according to active LI

Jul 8 2023 12:33 PM

Hi, I have a requirement where I need to hide the elements according to the active LI

suppose I have 10 LI elements when I reach to 5th position I need to show only 3rd - 7th elements, which means active - 2 and active +2 elements can be shown rest of them hides 

how is this possible in Jquery


Answers (1)