views:

591

answers:

1

I am using jCarousel to have a carousel of images in my page. It works great and have no complaints, but I am using the tabbing on the page and when I goto another tab, it get an ugly jCarousel error. Basically what I want to do is to remove the jCarousel from my element when I goto a new tab but for the life of me can't figure it out

To add the carousel I am using code like this $("#myelement").jCarousel({ /* config params */});

But I am unsure of how to remove .jCarousel from $("#myelement") any ideas?

A: 

There doesn't seem to be a remove function as part of the plugin.

You could dig into the source and build one, or a quicker mechanism may be to clone myelement, remove the element and then replace with the cloned version.

Russ Cam