Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3401158
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:58:52+00:00 2026-05-18T04:58:52+00:00

Trying to build a slideshow of HTML slides with jQuery serialScroll. However, if my

  • 0

Trying to build a slideshow of HTML slides with jQuery serialScroll. However, if my slides contain nested elements that match the element I’m trying to scroll, then it acts a little weird.

Is there a way to use CSS classes as selector items instead of HTML elements?

Here is an example of the typical usages I’ve seen:

$('#screen').serialScroll({
    target:'#sections',
    items:'li',
    prev:'img.prev',
    next:'img.next',
    navigation:'#navigation li a',
    duration:700,
    force:true,
    step:1,
    interval:1000
});

I would like to do the following (note: CSS class used as items value):

$('#screen').serialScroll({
    target:'#sections',
    items:'.mycssclass',
    prev:'img.prev',
    next:'img.next',
    navigation:'#navigation li a',
    duration:700,
    force:true,
    step:1,
    interval:1000
});

In the above example, if you attached the .mycssclass to a list item elements and the have further list items nested in the slide HTML, your slides will bounce around in odd directions.

My markup looks like this:

<div id="screen">
<div id="sections">
 <ul>
  <li class="mycssclass">
   <h2>Section 1</h2>
    <ul>
      <li>Nest li</li>
    </ul>
   <p>Lorem ipsum dolor sit amet...</p>
  </li>
  <li class="mycssclass">
   <h2>Section 2</h2>
    <ul>
      <li>Nest li</li>
    </ul>
   <p>Lorem ipsum dolor sit amet...</p>
  </li>
 </ul>
</div>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:58:52+00:00Added an answer on May 18, 2026 at 4:58 am

    items already takes a selector, it’s used here:

    function getItems(){
      return $( items, pane );
    };
    

    So…just use exactly what you want in the question, it’ll find any .mycssclass elements inside #screen, equivalent to:

    $(".mycssclass", "#screen")
    //or..
    $("#screen").find(".mycssclass")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a slideshow using jquery. The animation for the next image
I am trying to build an Eclipse application that would work with a linux/motif
I'm trying build a regex that will replace any characters not of the format:
I have a std::vector< tr1::shared_ptr<mapObject> > that I'm trying build from data contained in
Im trying to build a small frame that displays an image. My problem is
I'm trying to build a search that is similar to that on Google (with
I'm trying to build a Chrome browser extension, that should enhance the way the
http://www.beulahprint.ie I'm trying to build a client testimonials slideshow. I want about 10 divs,
Im trying to build a page that will allow a user to select a
I trying to build an application that is using the torrent technology to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.