troubleshooting Question

creating multiple instances of  carousels

Avatar of mattibutt
mattibuttFlag for United States of America asked on
PHPjQuery
21 Comments1 Solution589 ViewsLast Modified:
hi
i am loading dynamically some data in the jcarousel i need to create multiple instances of the this object when i try to create multiple instances it doesnt work
i saw an example here but i wanna know how can i change my existing javascript code to create multiple instances
http://sorgalla.com/projects/jcarousel/examples/static_multiple.html
<script type="text/javascript">
 
  jQuery(document).ready(function() {
   jQuery('#mycarousel').jcarousel({
		size: {/literal}10{literal}
	});
  });
  
  
  </script>
 
//html smarty codes
	<div id="ajaxcontentarea" class="contentstyle">
				
				<div id="tabs_related" class="tabcontent">
                       
		<ul id="mycarousel" class="jcarousel-skin-phpmelody">
			{$show_more_related}
	
		   </ul>
				</div>
				
                <div id="tabs_relateds" class="tabcontent">
                <ul id="mycarousel" class="jcarousel-skin">
				{$show_more_race}
                  </ul>
				</div>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 21 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros