Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prev/next buttons don't work when a tags are in li #6

Open
jcubic opened this issue Sep 11, 2016 · 0 comments
Open

prev/next buttons don't work when a tags are in li #6

jcubic opened this issue Sep 11, 2016 · 0 comments

Comments

@jcubic
Copy link

jcubic commented Sep 11, 2016

I have this html:

    <section class="gallery">
        <ul>
            <li>
                <a href="img/batik-01.jpg" class="fresco sb" title="Ikar">
                    <img src="img/batik-sm-01.jpg" alt="Batik: Ikar"/>
                </a>
                <p>Ikar</p>
            </li>
            <li>
                <a href="img/batik-02.jpg" class="fresco sb" title="Rozdroże">
                    <img src="img/batik-sm-02.jpg" alt="Batik: Rozdroże"/>
                </a>
                <p>Rozdroże</p>
            </li>
        </ul>
    </section>

and prev/next button don't work. probably because $(this).index('.sb'); is always 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant