0

Hi I am using Swiper(Default) in my application. I want to know which div is currently visible. I tried this example but no use. I want to load data on div which is currently visible.

Community
  • 1
  • 1
Bharadwaj
  • 2,535
  • 1
  • 22
  • 35

1 Answers1

1

Check this may be help you

http://www.idangero.us/sliders/swiper/api.php

mySwiper.activeSlide - returns the index number of currently active slide. Deprecated! Use .activeIndex

mySwiper.activeIndex - returns the index number of currently active slide. New in 1.9.2

Hkachhia
  • 4,463
  • 6
  • 41
  • 76
  • can I load `html` into `div` based on this swipe index number? – Bharadwaj May 31 '13 at 06:49
  • see slide.html(innerHTML) [innerHTML - string] - works similar to jQuery/Zepto .html() function. If you specify innerHTML then it will replace slide's inner html and function will return slide instance. If innerHTML is not specified then this function will return slide's inner html. – Hkachhia May 31 '13 at 06:55
  • See properly api link given by me you will get all the answer – Hkachhia May 31 '13 at 06:58
  • Yes. Thank you... Every thing is listed in this page... :) – Bharadwaj May 31 '13 at 07:14