I am stuck on the following:
I am using the iDangerous Swiper plugin, which works great. However, I would also like to use the jQuery click function on the same iDangerous swiper.
For instance:
<div id="swiper-container">
<div class="swiper-slide">(lots of stuff here)</div>
<div class="swiper-slide">(lots of stuff here)</div>
<div class="swiper-slide">(lots of stuff here)</div>
<div class="swiper-slide">(lots of stuff here)</div>
</div>
and:
$('.swiper-slide').click(function() {
}
The problem is that scrolling the slider also starts jquery.click. This is bad because in my case, the function inside .click loads another page.
Using simple html links works. This, however, does not solve my problem, because I want the next page to load invisibly (without loading in the url line).
Does anyone know how to prevent the above jQuery code from running when using the slider?
Thanks in advance:)
Frank