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

  • Home
  • SEARCH
  • 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 6837665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:30:15+00:00 2026-05-26T23:30:15+00:00

Hi I am using 2 jQuery plugins, one for tabs and another to slide

  • 0

Hi I am using 2 jQuery plugins, one for tabs and another to slide images within my tabs. Currently I have 2 tabs. jQuery for the first tab works fine but when I click on the next tab it dosent work. The elements are present in the second tab as well, but the classes are not toggled from hidden to visible.

I am using these two plugins
For My tabs
For Sliding images inside each Tab

Here Goes my Code :-

<div class="demo" style="display: inline-block;">
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1" > <?php echo $categoryName ?> </a></li>
            <li><a href="#tabs-2" > <?php echo $categoryName ?> </a></li>
        </ul>
        <div id="tabs-1">
            <div id="waterwheel-carousel-flat1">
                <div class="carousel-controls">
                    <div class="carousel-prev"><a href="#">&lt; previous</a></div>
                    <div class="carousel-next"><a href="#">&gt; next</a></div>
                </div>
                <div class="carousel-images">
                    <a href=<?php echo $productLink ?> ><img src= <?php echo $imageLink ?> alt= <?php echo $productName ?>/> </a> 
                </div>
            </div>
        </div>

        <div id="tabs-2">
            <div id="waterwheel-carousel-flat">
                <div class="carousel-controls">
                    <div class="carousel-prev"><a href="#">&lt; previous</a></div>
                    <div class="carousel-next"><a href="#">&gt; next</a></div>
                </div>
                <div class="carousel-images">
                    <a href=<?php echo $productLink ?> ><img src= <?php echo $imageLink ?> alt= <?php echo $productName ?>/> </a> 
                    <?php }  ?>
                </div>
            </div>
        </div>
    </div>
</div>

My Script for Sliding Images Inside Tabs Goes here:-

<script type="text/javascript">

var jq = $.noConflict();
jq(document).ready(function () {
    jq("#waterwheel-carousel-default").waterwheelCarousel();

    jq("#waterwheel-carousel-higharch").waterwheelCarousel({
        startingWaveSeparation: -90,
        waveSeparationFactor: .7,
        centerOffset: 10,
        startingItemSeparation: 120,
        itemSeparationFactor: .9,
        itemDecreaseFactor: .75
    });

    jq("#waterwheel-carousel-horizon").waterwheelCarousel({
        startingWaveSeparation: 0,
        centerOffset: 30,
        startingItemSeparation: 150,
        itemSeparationFactor: .7,
        itemDecreaseFactor: .75,
        opacityDecreaseFactor: 1,
        autoPlay: 1500
    });

    jq("#waterwheel-carousel-flat").waterwheelCarousel({
        itemSeparationFactor: 1,
        itemDecreaseFactor: 1,
        waveSeparationFactor: 1,
        startingWaveSeparation: 0,
        startingItemSeparation: 280,
        centerOffset: 10,
        opacityDecreaseFactor: .3,
        autoPlay: 3000,
        edgeReaction: 'reverse'
    });

    jq("#waterwheel-carousel-vertical").waterwheelCarousel({
        orientation: 'vertical',
        startingItemSeparation: 100,
        startingWaveSeparation: 40,
        autoPlay: 2000
    });


  });
</script>

Here Is My Generated Html Code

<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">



    <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1"> Lovely new arrivals </a></li>


    <li class="ui-state-default ui-corner-top"><a href="#tabs-2"> Designer Collection </a></li>



</ul>

<div id="tabs-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
    <div id="waterwheel-carousel-flat">
      <div class="carousel-controls">
        <div class="carousel-prev"><a href="#">&lt; previous</a></div>
        <div class="carousel-next"><a href="#">&gt; next</a></div>
      </div>
      <div class="carousel-images" style="position: relative;">



          <a href="http://127.0.0.1/sweetpea/index.php/gold-gilt-button-bed.html"><img bed="" button="" gilt="" alt="Gold" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/s/u/sub-cat-pro-01_03_2.jpg" style="display: inline; left: 119.5px; top: 10px; visibility: visible; position: absolute; z-index: 5; opacity: 0.3; width: 161px; height: 161px;" class=""> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/willows-shell-carved-bed-silver-1.html"><img silver1="" -="" bed="" carved="" shell="" alt="Willows" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/s/u/sub-cat-pro-01_03_3.jpg" style="display: inline; left: 399.5px; top: 10px; visibility: visible; position: absolute; z-index: 6; opacity: 1; width: 161px; height: 161px;" class="active"> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/classical-white-5ft-rococo-bed-1.html"><img bed="" rococo="" 5ft="" white="" alt="Classical" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/s/u/sub-cat-pro-01_03_4.jpg" style="display: inline; left: 679.5px; top: 10px; visibility: visible; position: absolute; z-index: 5; opacity: 0.3; width: 161px; height: 161px;" class=""> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/bed.html"><img alt="Bed/" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/thumbnail.jpg" style="display: inline; left: 959.5px; top: 10px; visibility: visible; position: absolute; z-index: 4; opacity: 0.09; width: 161px; height: 161px;" class=""> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/green-bed.html"><img bed="" alt="Green" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/c/o/cooper_black_bed.jpg" style="display: inline; left: 1239.5px; top: 10px; visibility: visible; position: absolute; z-index: 3; opacity: 0.027; width: 161px; height: 161px;" class=""> </a> 
                                </div>
        </div>
    </div>

    <div id="tabs-2" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">
    <div id="waterwheel-carousel-flat1">
      <div class="carousel-controls">
        <div class="carousel-prev"><a href="#">&lt; previous</a></div>
        <div class="carousel-next"><a href="#">&gt; next</a></div>
      </div>
      <div class="carousel-images">



          <a href="http://127.0.0.1/sweetpea/index.php/product-4.html"><img silver="" -="" bed="" carved="" shell="" alt="Willows" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/k/i/kingsley-bate-rectangular-dining-set-furniture.jpg"> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/gold-gilt-button-bed.html"><img bed="" button="" gilt="" alt="Gold" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/s/u/sub-cat-pro-01_03_2.jpg"> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/willows-shell-carved-bed-silver-1.html"><img silver1="" -="" bed="" carved="" shell="" alt="Willows" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/s/u/sub-cat-pro-01_03_3.jpg"> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/classical-white-5ft-rococo-bed-1.html"><img bed="" rococo="" 5ft="" white="" alt="Classical" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/s/u/sub-cat-pro-01_03_4.jpg"> </a> 

          <a href="http://127.0.0.1/sweetpea/index.php/green-bed.html"><img bed="" alt="Green" src="http://127.0.0.1/sweetpea/media/catalog/product/cache/1/thumbnail/161x161/9df78eab33525d08d6e5fb8d27136e95/c/o/cooper_black_bed.jpg"> </a> 
                                </div>
        </div>
    </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-26T23:30:16+00:00Added an answer on May 26, 2026 at 11:30 pm

    it doesn’t work because of that:

    <div id="waterwheel-carousel-flat">
    ....
    <div id="waterwheel-carousel-flat">
    

    the id must be unique within a document


    I hope now you can see why “” (quotes) – are important by specifying html attributes (look at your images)

    the problem is – you’ve renamed your div, but not initialized it, add initialization for #waterwheel-carousel-flat1


    jq("#waterwheel-carousel-flat,#waterwheel-carousel-flat1").waterwheelCarousel({
      ... 
    });
    

    OR use class attribute instead of id:

    js init:

    jq(".waterwheel-carousel-flat").waterwheelCarousel({
      ... 
    });
    

    html:

    <div class="waterwheel-carousel-flat">
    ...
    <div class="waterwheel-carousel-flat">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery UI , I have a tabs plugin and within tab 1 gets
I have some elements and I'm using some jQuery plugins. I want to see
I am using older JQuery Autocomplete plug-in (the one shown here - http://view.jquery.com/trunk/plugins/autocomplete/demo/ ).
I'm currently developing a web file browser using jquery and php. One of my
I have a problem using multiple (2) jQuery plugins. I've googled a little but
Fields on the site are validated using JQuery Validate: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ When there's one e-mail,
I am using jQuery Validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) I have a very odd
Love the JQuery Treewiev plugin http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ , but I have one problem with it.
I have two password fields pwd1 and pwd2 I am using jquery plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/
I'm developing a dynamic website using jQuery and I have found several jQuery plugins

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.